Python Web 框架 Django 1.4 beta 1 發布

fmms 12年前發布 | 10K 次閱讀 Python

Python Web 框架 Django

Django 項目是一個定制框架,它源自一個在線新聞 Web 站點,于 2005 年以開源的形式被釋放出來。Django 框架的核心組件有:

  • 用于創建模型的對象關系映射
  • 為最終用戶設計的完美管理界面
  • 一流的 URL 設計
  • 設計者友好的模板語言
  • 緩存系統

你是否期待 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 可從這里 下載.

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!