4.2.txt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. ============================================
  2. Django 4.2 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. *Expected April 2023*
  5. Welcome to Django 4.2!
  6. These release notes cover the :ref:`new features <whats-new-4.2>`, as well as
  7. some :ref:`backwards incompatible changes <backwards-incompatible-4.2>` you'll
  8. want to be aware of when upgrading from Django 4.1 or earlier. We've
  9. :ref:`begun the deprecation process for some features
  10. <deprecated-features-4.2>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Python compatibility
  14. ====================
  15. Django 4.2 supports Python 3.8, 3.9, 3.10, and 3.11. We **highly recommend**
  16. and only officially support the latest release of each series.
  17. .. _whats-new-4.2:
  18. What's new in Django 4.2
  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. * The default iteration count for the PBKDF2 password hasher is increased from
  31. 390,000 to 480,000.
  32. :mod:`django.contrib.contenttypes`
  33. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. * ...
  35. :mod:`django.contrib.gis`
  36. ~~~~~~~~~~~~~~~~~~~~~~~~~
  37. * The :doc:`GeoJSON serializer </ref/contrib/gis/serializers>` now outputs the
  38. ``id`` key for serialized features, which defaults to the primary key of
  39. objects.
  40. :mod:`django.contrib.messages`
  41. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. * ...
  43. :mod:`django.contrib.postgres`
  44. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  45. * ...
  46. :mod:`django.contrib.redirects`
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. * ...
  49. :mod:`django.contrib.sessions`
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. * ...
  52. :mod:`django.contrib.sitemaps`
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. * ...
  55. :mod:`django.contrib.sites`
  56. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. * ...
  58. :mod:`django.contrib.staticfiles`
  59. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. * ...
  61. :mod:`django.contrib.syndication`
  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-4.2:
  134. Backwards incompatible changes in 4.2
  135. =====================================
  136. Database backend API
  137. --------------------
  138. This section describes changes that may be needed in third-party database
  139. backends.
  140. * ...
  141. Dropped support for MariaDB 10.3
  142. --------------------------------
  143. Upstream support for MariaDB 10.3 ends in May 2023. Django 4.2 supports MariaDB
  144. 10.4 and higher.
  145. Dropped support for PostgreSQL 11
  146. ---------------------------------
  147. Upstream support for PostgreSQL 11 ends in November 2023. Django 4.2 supports
  148. PostgreSQL 12 and higher.
  149. Miscellaneous
  150. -------------
  151. * ...
  152. .. _deprecated-features-4.2:
  153. Features deprecated in 4.2
  154. ==========================
  155. Miscellaneous
  156. -------------
  157. * The ``BaseUserManager.make_random_password()`` method is deprecated. See
  158. `recipes and best practices
  159. <https://docs.python.org/3/library/secrets.html#recipes-and-best-practices>`_
  160. for using Python's :py:mod:`secrets` module to generate passwords.