5.1.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. ============================================
  2. Django 5.1 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. *Expected August 2024*
  5. Welcome to Django 5.1!
  6. These release notes cover the :ref:`new features <whats-new-5.1>`, as well as
  7. some :ref:`backwards incompatible changes <backwards-incompatible-5.1>` you'll
  8. want to be aware of when upgrading from Django 5.0 or earlier. We've
  9. :ref:`begun the deprecation process for some features
  10. <deprecated-features-5.1>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Python compatibility
  14. ====================
  15. Django 5.1 supports Python 3.10, 3.11, and 3.12. We **highly recommend** and
  16. only officially support the latest release of each series.
  17. .. _whats-new-5.1:
  18. What's new in Django 5.1
  19. ========================
  20. Minor features
  21. --------------
  22. :mod:`django.contrib.admin`
  23. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. * ...
  25. :mod:`django.contrib.admindocs`
  26. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. * ...
  28. :mod:`django.contrib.auth`
  29. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  30. * ...
  31. :mod:`django.contrib.contenttypes`
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. * ...
  34. :mod:`django.contrib.gis`
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~
  36. * ...
  37. :mod:`django.contrib.messages`
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. * ...
  40. :mod:`django.contrib.postgres`
  41. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. * ...
  43. :mod:`django.contrib.redirects`
  44. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  45. * ...
  46. :mod:`django.contrib.sessions`
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. * ...
  49. :mod:`django.contrib.sitemaps`
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. * ...
  52. :mod:`django.contrib.sites`
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. * ...
  55. :mod:`django.contrib.staticfiles`
  56. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. * ...
  58. :mod:`django.contrib.syndication`
  59. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. * ...
  61. Asynchronous views
  62. ~~~~~~~~~~~~~~~~~~
  63. * ...
  64. Cache
  65. ~~~~~
  66. * ...
  67. CSRF
  68. ~~~~
  69. * ...
  70. Decorators
  71. ~~~~~~~~~~
  72. * ...
  73. Email
  74. ~~~~~
  75. * ...
  76. Error Reporting
  77. ~~~~~~~~~~~~~~~
  78. * ...
  79. File Storage
  80. ~~~~~~~~~~~~
  81. * ...
  82. File Uploads
  83. ~~~~~~~~~~~~
  84. * ...
  85. Forms
  86. ~~~~~
  87. * ...
  88. Generic Views
  89. ~~~~~~~~~~~~~
  90. * ...
  91. Internationalization
  92. ~~~~~~~~~~~~~~~~~~~~
  93. * ...
  94. Logging
  95. ~~~~~~~
  96. * ...
  97. Management Commands
  98. ~~~~~~~~~~~~~~~~~~~
  99. * ...
  100. Migrations
  101. ~~~~~~~~~~
  102. * ...
  103. Models
  104. ~~~~~~
  105. * ...
  106. Requests and Responses
  107. ~~~~~~~~~~~~~~~~~~~~~~
  108. * ...
  109. Security
  110. ~~~~~~~~
  111. * ...
  112. Serialization
  113. ~~~~~~~~~~~~~
  114. * ...
  115. Signals
  116. ~~~~~~~
  117. * ...
  118. Templates
  119. ~~~~~~~~~
  120. * ...
  121. Tests
  122. ~~~~~
  123. * ...
  124. URLs
  125. ~~~~
  126. * ...
  127. Utilities
  128. ~~~~~~~~~
  129. * ...
  130. Validators
  131. ~~~~~~~~~~
  132. * ...
  133. .. _backwards-incompatible-5.1:
  134. Backwards incompatible changes in 5.1
  135. =====================================
  136. Database backend API
  137. --------------------
  138. This section describes changes that may be needed in third-party database
  139. backends.
  140. * ...
  141. Miscellaneous
  142. -------------
  143. * ...
  144. .. _deprecated-features-5.1:
  145. Features deprecated in 5.1
  146. ==========================
  147. Miscellaneous
  148. -------------
  149. * ...
  150. Features removed in 5.1
  151. =======================
  152. These features have reached the end of their deprecation cycle and are removed
  153. in Django 5.1.
  154. See :ref:`deprecated-features-4.2` for details on these changes, including how
  155. to remove usage of these features.
  156. * The ``BaseUserManager.make_random_password()`` method is removed.
  157. * The model's ``Meta.index_together`` option is removed.
  158. * The ``length_is`` template filter is removed.
  159. * The ``django.contrib.auth.hashers.SHA1PasswordHasher``,
  160. ``django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher``, and
  161. ``django.contrib.auth.hashers.UnsaltedMD5PasswordHasher`` are removed.
  162. * The model ``django.contrib.postgres.fields.CICharField``,
  163. ``django.contrib.postgres.fields.CIEmailField``, and
  164. ``django.contrib.postgres.fields.CITextField`` are removed, except for
  165. support in historical migrations.
  166. * The ``django.contrib.postgres.fields.CIText`` mixin is removed.
  167. * The ``map_width`` and ``map_height`` attributes of ``BaseGeometryWidget`` are
  168. removed.
  169. * The ``SimpleTestCase.assertFormsetError()`` method is removed.
  170. * The ``TransactionTestCase.assertQuerysetEqual()`` method is removed.
  171. * Support for passing encoded JSON string literals to ``JSONField`` and
  172. associated lookups and expressions is removed.
  173. * Support for passing positional arguments to ``Signer`` and
  174. ``TimestampSigner`` is removed.
  175. * The ``DEFAULT_FILE_STORAGE`` and ``STATICFILES_STORAGE`` settings is removed.
  176. * The ``django.core.files.storage.get_storage_class()`` function is removed.