123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- ============================================
- Django 5.2 release notes - UNDER DEVELOPMENT
- ============================================
- *Expected April 2025*
- Welcome to Django 5.2!
- These release notes cover the :ref:`new features <whats-new-5.2>`, as well as
- some :ref:`backwards incompatible changes <backwards-incompatible-5.2>` you
- should be aware of when upgrading from Django 5.1 or earlier. We've
- :ref:`begun the deprecation process for some features
- <deprecated-features-5.2>`.
- See the :doc:`/howto/upgrade-version` guide if you're updating an existing
- project.
- Django 5.2 is designated as a :term:`long-term support release
- <Long-term support release>`. It will receive security updates for at least
- three years after its release. Support for the previous LTS, Django 4.2, will
- end in April 2026.
- Python compatibility
- ====================
- Django 5.2 supports Python 3.10, 3.11, 3.12, and 3.13. We **highly recommend**
- and only officially support the latest release of each series.
- .. _whats-new-5.2:
- What's new in Django 5.2
- ========================
- Minor features
- --------------
- :mod:`django.contrib.admin`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * The ``admin/base.html`` template now has a new block
- :ref:`extrabody <extrabody>` for adding custom code before the closing
- ``</body>`` tag.
- :mod:`django.contrib.admindocs`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.auth`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- * The default iteration count for the PBKDF2 password hasher is increased from
- 870,000 to 1,000,000.
- :mod:`django.contrib.contenttypes`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.gis`
- ~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.messages`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.postgres`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.redirects`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.sessions`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.sitemaps`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.sites`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.staticfiles`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.syndication`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * All :class:`~django.utils.feedgenerator.SyndicationFeed` classes now support
- a ``stylesheets`` attribute. If specified, an ``<? xml-stylesheet ?>``
- processing instruction will be added to the top of the document for each
- stylesheet in the given list. See :ref:`feed-stylesheets` for more details.
- Asynchronous views
- ~~~~~~~~~~~~~~~~~~
- * ...
- Cache
- ~~~~~
- * ...
- CSRF
- ~~~~
- * ...
- Database backends
- ~~~~~~~~~~~~~~~~~
- * ...
- Decorators
- ~~~~~~~~~~
- * ...
- Email
- ~~~~~
- * Tuple items of :class:`EmailMessage.attachments
- <django.core.mail.EmailMessage>` and
- :class:`EmailMultiAlternatives.attachments
- <django.core.mail.EmailMultiAlternatives>` are now named tuples, as opposed
- to regular tuples.
- * :attr:`EmailMultiAlternatives.alternatives
- <django.core.mail.EmailMultiAlternatives.alternatives>` is now a list of
- named tuples, as opposed to regular tuples.
- Error Reporting
- ~~~~~~~~~~~~~~~
- * ...
- File Storage
- ~~~~~~~~~~~~
- * ...
- File Uploads
- ~~~~~~~~~~~~
- * ...
- Forms
- ~~~~~
- * ...
- Generic Views
- ~~~~~~~~~~~~~
- * ...
- Internationalization
- ~~~~~~~~~~~~~~~~~~~~
- * ...
- Logging
- ~~~~~~~
- * ...
- Management Commands
- ~~~~~~~~~~~~~~~~~~~
- * ...
- Migrations
- ~~~~~~~~~~
- * ...
- Models
- ~~~~~~
- * ...
- Requests and Responses
- ~~~~~~~~~~~~~~~~~~~~~~
- * ...
- Security
- ~~~~~~~~
- * ...
- Serialization
- ~~~~~~~~~~~~~
- * ...
- Signals
- ~~~~~~~
- * ...
- Templates
- ~~~~~~~~~
- * ...
- Tests
- ~~~~~
- * ...
- URLs
- ~~~~
- * ...
- Utilities
- ~~~~~~~~~
- * ...
- Validators
- ~~~~~~~~~~
- * ...
- .. _backwards-incompatible-5.2:
- Backwards incompatible changes in 5.2
- =====================================
- Database backend API
- --------------------
- This section describes changes that may be needed in third-party database
- backends.
- * ...
- :mod:`django.contrib.gis`
- -------------------------
- * Support for PostGIS 3.0 is removed.
- Dropped support for PostgreSQL 13
- ---------------------------------
- Upstream support for PostgreSQL 13 ends in November 2025. Django 5.2 supports
- PostgreSQL 14 and higher.
- Miscellaneous
- -------------
- * ...
- .. _deprecated-features-5.2:
- Features deprecated in 5.2
- ==========================
- Miscellaneous
- -------------
- * ...
|