Django 1.11 release note簡明解讀

1、首先1.11這個版本是一個LTS版本

2、第一個支持python3.6的版本,最後一個支持python2.*的版本

3、Deprecating warnings 默認不再顯示,同時建議第三方包開始放棄對1.11之前版本的支持

下面爲大的新特性:

4、Class-based model indexes,基於類的model索引,在meta部分定義索引

5、基於模板的widget渲染

6、子查詢表達式

下面爲小的新特性摘記:

密碼加密的次數增加20%

Added QuerySet.union(), intersection(), and difference().

ImageField now has a default validate_image_file_extension validator.
Added FileExtensionValidator to validate file extensions and validate_image_file_extension to validate image files.

下面是一些不向前兼容的修改:

Dropped support for PostgreSQL 9.2 and PostGIS 2.0

To simplify Django’s timezone handling, pytz is now a required dependency. It’s automatically installed along with Django.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章