手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Django 1.4 beta 1 发布 不支持 Python 2.4

[日期:2012-02-18] 来源:oschina  作者:Linux [字体:大 中 小]

你是否期待 Django 1.4 很久了,现在终于发布了第一个 beta 版本。该版本最大的改进就是支持浏览器内的测试框架,但另外需要注意的是不再支持 Python 2.4.

下面是 Django 1.4 Beta 1 的主要改进:

  • SELECT FOR UPDATE support:  Features a QuerySet.select_for_update() that generates a SQL query and prevents other transactions fro modifying of deleting matched rows.
  • Model.objects.bulk_create in the ORM: allows you to create multiple objects in the ORM more efficiently.
  • QuerySet.prefetch_related: Once query evaluation begins, a new QuerySet is returned that will prefetch related lookups in one batch.
  • Improved Password Hashing: Django 1.4 uses the PBKDF2 algorithm in place of the SHA1 algorithm, which has been deemed less secure. ("Warning: Django 1.4 alpha contained a bug that corrupted PBKDF2 hashes.  More information is available here.")
  • HTML5 Doctype: While Django will maintain compatibility with older browsers, it has now switched the admin and other bundled templates to HMTL5, meaning any HTML5 features can be used in the admin pages without losing HTML5 validity.

Django 1.4 beta 1 同时包含如下特性:

完整的改进记录请看:release notes.

Django 1.4 beta 1 可从这里 下载.

linux
相关资讯       python  Django 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款