1.11.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. =============================================
  2. Django 1.11 release notes - UNDER DEVELOPMENT
  3. =============================================
  4. Welcome to Django 1.11!
  5. These release notes cover the :ref:`new features <whats-new-1.11>`, as well as
  6. some :ref:`backwards incompatible changes <backwards-incompatible-1.11>` you'll
  7. want to be aware of when upgrading from Django 1.10 or older versions. We've
  8. :ref:`begun the deprecation process for some features
  9. <deprecated-features-1.11>`.
  10. Django 1.11 is designated as a :term:`long-term support release`. It will
  11. receive security updates for at least three years after its release. Support
  12. for the previous LTS, Django 1.8, will end 6 months after the release date of
  13. Django 1.11.
  14. Python compatibility
  15. ====================
  16. Like Django 1.10, Django 1.11 requires Python 2.7, 3.4, or 3.5. We **highly
  17. recommend** and only officially support the latest release of each series.
  18. The Django 1.11.x series is the last to support Python 2. The next major
  19. release, Django 2.0, will only support Python 3.5+.
  20. Deprecating warnings are no longer loud by default
  21. ==================================================
  22. Unlike older versions of Django, Django's own deprecation warnings are no
  23. longer displayed by default. This is consistent with Python's default behavior.
  24. This change allows third-party apps to support both Django 1.11 LTS and Django
  25. 1.8 LTS without having to add code to avoid deprecation warnings.
  26. Following the release of Django 2.0, we suggest that third-party app authors
  27. drop support for all versions of Django prior to 1.11. At that time, you should
  28. be able run your package's tests using ``python -Wd`` so that deprecation
  29. warnings do appear. After making the deprecation warning fixes, your app should
  30. be compatible with Django 2.0.
  31. .. _whats-new-1.11:
  32. What's new in Django 1.11
  33. =========================
  34. Minor features
  35. --------------
  36. :mod:`django.contrib.admin`
  37. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38. * ...
  39. :mod:`django.contrib.admindocs`
  40. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. * ...
  42. :mod:`django.contrib.auth`
  43. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. * The default iteration count for the PBKDF2 password hasher is increased by
  45. 20%.
  46. :mod:`django.contrib.contenttypes`
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. * ...
  49. :mod:`django.contrib.gis`
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~
  51. * ...
  52. :mod:`django.contrib.messages`
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. * ...
  55. :mod:`django.contrib.postgres`
  56. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. * The new ``distinct`` argument for
  58. :class:`~django.contrib.postgres.aggregates.StringAgg` determines if
  59. concatenated values will be distinct.
  60. :mod:`django.contrib.redirects`
  61. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. * ...
  63. :mod:`django.contrib.sessions`
  64. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  65. * ...
  66. :mod:`django.contrib.sitemaps`
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. * ...
  69. :mod:`django.contrib.sites`
  70. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  71. * ...
  72. :mod:`django.contrib.staticfiles`
  73. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. * ...
  75. :mod:`django.contrib.syndication`
  76. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. * ...
  78. Cache
  79. ~~~~~
  80. * ...
  81. CSRF
  82. ~~~~
  83. * ...
  84. Database backends
  85. ~~~~~~~~~~~~~~~~~
  86. * ...
  87. Email
  88. ~~~~~
  89. * Added the :setting:`EMAIL_USE_LOCALTIME` setting to allow sending SMTP date
  90. headers in the local time zone rather than in UTC.
  91. File Storage
  92. ~~~~~~~~~~~~
  93. * To make it wrappable by :class:`io.TextIOWrapper`,
  94. :class:`~django.core.files.File` now has the ``readable()``, ``writable()``,
  95. and ``seekable()`` methods.
  96. File Uploads
  97. ~~~~~~~~~~~~
  98. * ...
  99. Forms
  100. ~~~~~
  101. * ...
  102. Generic Views
  103. ~~~~~~~~~~~~~
  104. * ...
  105. Internationalization
  106. ~~~~~~~~~~~~~~~~~~~~
  107. * ...
  108. Management Commands
  109. ~~~~~~~~~~~~~~~~~~~
  110. * ...
  111. Migrations
  112. ~~~~~~~~~~
  113. * ...
  114. Models
  115. ~~~~~~
  116. * Added support for callable values in the ``defaults`` argument of
  117. :meth:`QuerySet.update_or_create()
  118. <django.db.models.query.QuerySet.update_or_create>` and
  119. :meth:`~django.db.models.query.QuerySet.get_or_create`.
  120. Requests and Responses
  121. ~~~~~~~~~~~~~~~~~~~~~~
  122. * ...
  123. Serialization
  124. ~~~~~~~~~~~~~
  125. * ...
  126. Signals
  127. ~~~~~~~
  128. * ...
  129. Templates
  130. ~~~~~~~~~
  131. * ...
  132. Tests
  133. ~~~~~
  134. * ...
  135. URLs
  136. ~~~~
  137. * ...
  138. Validators
  139. ~~~~~~~~~~
  140. * ...
  141. .. _backwards-incompatible-1.11:
  142. Backwards incompatible changes in 1.11
  143. ======================================
  144. Database backend API
  145. --------------------
  146. * ...
  147. Dropped support for PostgreSQL 9.2 and PostGIS 2.0
  148. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  149. Upstream support for PostgreSQL 9.2 ends in September 2017. As a consequence,
  150. Django 1.11 sets PostgreSQL 9.3 as the minimum version it officially supports.
  151. Support for PostGIS 2.0 is also removed as PostgreSQL 9.2 is the last version
  152. to support it.
  153. Miscellaneous
  154. -------------
  155. * If no items in the feed have a ``pubdate`` or ``updateddate`` attribute,
  156. :meth:`SyndicationFeed.latest_post_date()
  157. <django.utils.feedgenerator.SyndicationFeed.latest_post_date>` now returns
  158. the current UTC date/time, instead of a datetime without any timezone
  159. information.
  160. * Support for SpatiaLite < 4.0 is dropped.
  161. * CSRF failures are logged to the ``django.security.csrf ``` logger instead of
  162. ``django.request``.
  163. .. _deprecated-features-1.11:
  164. Features deprecated in 1.11
  165. ===========================
  166. Miscellaneous
  167. -------------
  168. * ...