2.1.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. ============================================
  2. Django 2.1 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. Welcome to Django 2.1!
  5. These release notes cover the :ref:`new features <whats-new-2.1>`, as well as
  6. some :ref:`backwards incompatible changes <backwards-incompatible-2.1>` you'll
  7. want to be aware of when upgrading from Django 2.0 or earlier. We've
  8. :ref:`dropped some features<removed-features-2.1>` that have reached the end of
  9. their deprecation cycle, and we've :ref:`begun the deprecation process for some
  10. features <deprecated-features-2.1>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Python compatibility
  14. ====================
  15. Django 2.1 supports Python 3.5, 3.6, and 3.7. Django 2.0 is the last version to
  16. support Python 3.4. We **highly recommend** and only officially support the
  17. latest release of each series.
  18. .. _whats-new-2.1:
  19. What's new in Django 2.1
  20. ========================
  21. Minor features
  22. --------------
  23. :mod:`django.contrib.admin`
  24. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25. * ...
  26. :mod:`django.contrib.admindocs`
  27. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  28. * ...
  29. :mod:`django.contrib.auth`
  30. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. * ...
  32. :mod:`django.contrib.contenttypes`
  33. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. * ...
  35. :mod:`django.contrib.gis`
  36. ~~~~~~~~~~~~~~~~~~~~~~~~~
  37. * ...
  38. :mod:`django.contrib.messages`
  39. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. * ...
  41. :mod:`django.contrib.postgres`
  42. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  43. * ...
  44. :mod:`django.contrib.redirects`
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. * ...
  47. :mod:`django.contrib.sessions`
  48. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. * ...
  50. :mod:`django.contrib.sitemaps`
  51. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. * ...
  53. :mod:`django.contrib.sites`
  54. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. * ...
  56. :mod:`django.contrib.staticfiles`
  57. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58. * ...
  59. :mod:`django.contrib.syndication`
  60. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  61. * ...
  62. Cache
  63. ~~~~~
  64. * ...
  65. CSRF
  66. ~~~~
  67. * ...
  68. Database backends
  69. ~~~~~~~~~~~~~~~~~
  70. * ...
  71. Email
  72. ~~~~~
  73. * ...
  74. File Storage
  75. ~~~~~~~~~~~~
  76. * ...
  77. File Uploads
  78. ~~~~~~~~~~~~
  79. * ...
  80. Forms
  81. ~~~~~
  82. * ...
  83. Generic Views
  84. ~~~~~~~~~~~~~
  85. * ...
  86. Internationalization
  87. ~~~~~~~~~~~~~~~~~~~~
  88. * ...
  89. Management Commands
  90. ~~~~~~~~~~~~~~~~~~~
  91. * ...
  92. Migrations
  93. ~~~~~~~~~~
  94. * ...
  95. Models
  96. ~~~~~~
  97. * ...
  98. Requests and Responses
  99. ~~~~~~~~~~~~~~~~~~~~~~
  100. * ...
  101. Serialization
  102. ~~~~~~~~~~~~~
  103. * ...
  104. Signals
  105. ~~~~~~~
  106. * ...
  107. Templates
  108. ~~~~~~~~~
  109. * ...
  110. Tests
  111. ~~~~~
  112. * ...
  113. URLs
  114. ~~~~
  115. * ...
  116. Validators
  117. ~~~~~~~~~~
  118. * ...
  119. .. _backwards-incompatible-2.1:
  120. Backwards incompatible changes in 2.1
  121. =====================================
  122. Database backend API
  123. --------------------
  124. * ...
  125. Dropped support for MySQL 5.5
  126. -----------------------------
  127. The end of upstream support for MySQL 5.5 is December 2018. Django 2.1 supports
  128. MySQL 5.6 and higher.
  129. Miscellaneous
  130. -------------
  131. * ...
  132. .. _deprecated-features-2.1:
  133. Features deprecated in 2.1
  134. ==========================
  135. Miscellaneous
  136. -------------
  137. * ...
  138. .. _removed-features-2.1:
  139. Features removed in 2.1
  140. =======================
  141. These features have reached the end of their deprecation cycle and are removed
  142. in Django 2.1. See :ref:`deprecated-features-1.11` for details, including how
  143. to remove usage of these features.
  144. in Django 2.1. See :ref:`deprecated-features-1.11` and for details, including
  145. how to remove usage of these features.
  146. * ``contrib.auth.views.login()``, ``logout()``, ``password_change()``,
  147. ``password_change_done()``, ``password_reset()``, ``password_reset_done()``,
  148. ``password_reset_confirm()``, and ``password_reset_complete()`` are removed.
  149. * The ``extra_context`` parameter of ``contrib.auth.views.logout_then_login()``
  150. is removed.
  151. * ``django.test.runner.setup_databases()`` is removed.
  152. * ``django.utils.translation.string_concat()`` is removed.
  153. * ``django.core.cache.backends.memcached.PyLibMCCache`` no longer supports
  154. passing ``pylibmc`` behavior settings as top-level attributes of ``OPTIONS``.
  155. * The ``host`` parameter of ``django.utils.http.is_safe_url()`` is removed.
  156. * Silencing of exceptions raised while rendering the ``{% include %}`` template
  157. tag is removed.
  158. * ``DatabaseIntrospection.get_indexes()`` is removed.
  159. * The ``authenticate()`` method of authentication backends requires ``request``
  160. as the first positional argument.
  161. * The ``django.db.models.permalink()`` decorator is removed.
  162. * The ``USE_ETAGS`` setting is removed. ``CommonMiddleware`` and
  163. ``django.utils.cache.patch_response_headers()`` no longer set ETags.
  164. * The ``Model._meta.has_auto_field`` attribute is removed.
  165. * Support for regular expression groups with ``iLmsu#`` in ``url()`` is removed.
  166. * Support for ``Widget.render()`` methods without the ``renderer`` argument
  167. is removed.