4.1.txt 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. ============================================
  2. Django 4.1 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. *Expected August 2022*
  5. Welcome to Django 4.1!
  6. These release notes cover the :ref:`new features <whats-new-4.1>`, as well as
  7. some :ref:`backwards incompatible changes <backwards-incompatible-4.1>` you'll
  8. want to be aware of when upgrading from Django 4.0 or earlier. We've
  9. :ref:`begun the deprecation process for some features
  10. <deprecated-features-4.1>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Python compatibility
  14. ====================
  15. Django 4.1 supports Python 3.8, 3.9, and 3.10. We **highly recommend** and only
  16. officially support the latest release of each series.
  17. .. _whats-new-4.1:
  18. What's new in Django 4.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. Cache
  62. ~~~~~
  63. * ...
  64. CSRF
  65. ~~~~
  66. * ...
  67. Decorators
  68. ~~~~~~~~~~
  69. * ...
  70. Email
  71. ~~~~~
  72. * ...
  73. Error Reporting
  74. ~~~~~~~~~~~~~~~
  75. * ...
  76. File Storage
  77. ~~~~~~~~~~~~
  78. * ...
  79. File Uploads
  80. ~~~~~~~~~~~~
  81. * ...
  82. Forms
  83. ~~~~~
  84. * ...
  85. Generic Views
  86. ~~~~~~~~~~~~~
  87. * ...
  88. Internationalization
  89. ~~~~~~~~~~~~~~~~~~~~
  90. * ...
  91. Logging
  92. ~~~~~~~
  93. * ...
  94. Management Commands
  95. ~~~~~~~~~~~~~~~~~~~
  96. * ...
  97. Migrations
  98. ~~~~~~~~~~
  99. * ...
  100. Models
  101. ~~~~~~
  102. * ...
  103. Requests and Responses
  104. ~~~~~~~~~~~~~~~~~~~~~~
  105. * ...
  106. Security
  107. ~~~~~~~~
  108. * ...
  109. Serialization
  110. ~~~~~~~~~~~~~
  111. * ...
  112. Signals
  113. ~~~~~~~
  114. * ...
  115. Templates
  116. ~~~~~~~~~
  117. * ...
  118. Tests
  119. ~~~~~
  120. * ...
  121. URLs
  122. ~~~~
  123. * ...
  124. Utilities
  125. ~~~~~~~~~
  126. * ...
  127. Validators
  128. ~~~~~~~~~~
  129. * ...
  130. .. _backwards-incompatible-4.1:
  131. Backwards incompatible changes in 4.1
  132. =====================================
  133. Database backend API
  134. --------------------
  135. This section describes changes that may be needed in third-party database
  136. backends.
  137. * ...
  138. Miscellaneous
  139. -------------
  140. * ...
  141. .. _deprecated-features-4.1:
  142. Features deprecated in 4.1
  143. ==========================
  144. Miscellaneous
  145. -------------
  146. * ...
  147. Features removed in 4.1
  148. =======================
  149. These features have reached the end of their deprecation cycle and are removed
  150. in Django 4.1.
  151. See :ref:`deprecated-features-3.2` for details on these changes, including how
  152. to remove usage of these features.
  153. * Support for assigning objects which don't support creating deep copies with
  154. ``copy.deepcopy()`` to class attributes in ``TestCase.setUpTestData()`` is
  155. removed.
  156. * Support for using a boolean value in
  157. :attr:`.BaseCommand.requires_system_checks` is removed.
  158. * The ``whitelist`` argument and ``domain_whitelist`` attribute of
  159. ``django.core.validators.EmailValidator`` are removed.
  160. * The ``default_app_config`` application configuration variable is removed.
  161. * ``TransactionTestCase.assertQuerysetEqual()`` no longer calls ``repr()`` on a
  162. queryset when compared to string values.
  163. * The ``django.core.cache.backends.memcached.MemcachedCache`` backend is
  164. removed.