Django 1.2 发布

流行的 Python Web 框架 Django 已发布 1.2 版本。在 Django 1.2 中引入的重要新特性主要包括:

  • 支持多个数据库连接
  • 模型验证机制
  • 新的用户 messages 框架
  • 改进了 Cross-Site Request Forgery (CSRF) 保护
  • 对象级别的权限
  • 匿名用户权限
  • 更灵活的用户名请求
  • E-mail 后端
  • 更强大的 if 标签

参阅 Django 1.2 发布公告发布注记可了解该版本的变化详情。Django 1.2 的源码包可从其官方网站获取。

{ via LWN }

Read More:

23 Comments

  1. 1 Leos Commented @ 2010-05-18 15:43Reply to this comment

    没用过python的经过 …… &

  2. 2 xifs Commented @ 2010-05-18 15:49Reply to this comment

    应该说一下if标签的问题吧,这么重要

  3. 3 xifs Commented @ 2010-05-18 15:50Reply to this comment

    匿名用户权限

  4. 4 Toy Commented @ 2010-05-18 16:06Reply to this comment

    @xifs: Thanks. 已补充。

  5. 5 jqxl0205 Commented @ 2010-05-18 16:54Reply to this comment

    我是今天凌晨的时候给Arch的Django提交的Flag Package Out-of-Date

  6. 6 komodo Commented @ 2010-05-18 18:05Reply to this comment

    模板里面的if 已经可以直接进行布尔运算,这个改进确实是最想要的。

  7. 7 绿色圣光 Commented @ 2010-05-18 18:37Reply to this comment

    python,不会,纯支持!

  8. 8 黑传说 Commented @ 2010-05-18 19:39Reply to this comment

    @jqxl0205: 还是在python的virtualenv里面装这个吧。django好像在中国被滥用了。

  9. 9 win.milan Commented @ 2010-05-18 19:49Reply to this comment

    python,很强大的说

  10. 10 jqxl0205 Commented @ 2010-05-18 20:55Reply to this comment

    @黑传说: virtualenv很爽的说。

    “django在中国被滥用了”这句话怎么讲?

  11. 11 黑传说 Commented @ 2010-05-18 22:37Reply to this comment

    @jqxl0205: 看看豆瓣里面python各种框架的粉丝人数,就知道中国人都在用django搞重复建设了。而其他更有潜力和威力的框架,却人数廖廖。

  12. 12 jqxl0205 Commented @ 2010-05-18 23:28Reply to this comment

    @黑传说: 我最近在搞WEB开发,刚开始的时候用的是web.py + SQLAlchemy。

    搞到最后发现好多要自己搞的东西django都提供的有,网上说django的运行效率将来在网站大了的时候会成问题,当为了快速的把东西搞出了,就先上django了。

    也想过使用别的框架,当要么是太简单了(目前我还没有能力[或者说经验]自己弄),pylons这个我照着官方文档弄了个demo都没有通过。

    zope的太复杂,要时间慢慢消化。

    最后只好上django了,文档较好,数据也多。

  13. 13 jqxl0205 Commented @ 2010-05-18 23:29Reply to this comment

    @黑传说: “更有潜力和威力的框架”能否推荐一下?

  14. 14 fcicq Commented @ 2010-05-18 23:32Reply to this comment

    GAE 用的是改过的 webob. webob 对做着玩的项目说比 django 更适合.

  15. 15 Daniel King Commented @ 2010-05-19 0:53Reply to this comment

    @jqxl0205: 咋不试试rails

  16. 16 jqxl0205 Commented @ 2010-05-19 1:12Reply to this comment

    @Daniel King: rails的语法太magic了呀。

  17. 17 黑传说 Commented @ 2010-05-19 10:27Reply to this comment

    @jqxl0205: turbogears web2py 感觉turbogears比较好,各种插件的可插拔性太好了,web2py比较容易入门。另外,现在搞web开发,可以换个思路,从js入手,比如使用objectJ。

  18. 18 flytwokites Commented @ 2010-05-19 11:46Reply to this comment

    python的框架里还是django做的最专业,rails是不错,但和ruby一个风格不是我喜欢的类型。 而且,django的orm实在是太赞了!

  19. 19 JJ Commented @ 2010-05-19 12:22Reply to this comment

    django 也比较容易找工作。

  20. 20 hhuai Commented @ 2010-05-19 13:19Reply to this comment

    从django跳到rails,感觉以前发现django那些缺点都不算缺点了。

  21. 21 Daniel King Commented @ 2010-05-19 14:02Reply to this comment

    @flytwokites: python和ruby的风格我都喜欢,还有django的orm没有接触过,python的只用过sqlalchemy听你这么一说有空看看django的,目前是rails的orm还让我喜欢得不愿意花时间研究别的框架勒。

  22. 22 Daniel King Commented @ 2010-05-19 14:02Reply to this comment

    @hhuai: 说说看?真想知道

  23. 23 风吹草动 Commented @ 2010-05-20 10:42Reply to this comment

    ror"体贴"过度,有2点不太习惯 1、rails的约定优于配置 个人认为,不必要的约定过多 2、ruby的同一目标多种手段 个人认为,不必要的冗余过多

    django没ror"体贴"但还不错

    turbogears的书太少