- Language: en
- Documentation version: development
Django 5.1 release notes - UNDER DEVELOPMENT¶
Expected August 2024
Welcome to Django 5.1!
These release notes cover the new features, as well as some backwards incompatible changes you’ll want to be aware of when upgrading from Django 5.0 or earlier. We’ve begun the deprecation process for some features.
See the How to upgrade Django to a newer version guide if you’re updating an existing project.
Django 5.1 supports Python 3.10, 3.11, and 3.12. We highly recommend and only officially support the latest release of each series.
What’s new in Django 5.1¶
- The default iteration count for the PBKDF2 password hasher is increased from 720,000 to 870,000.
Requests and Responses¶
- Custom tags may now set extra data on the
Parserobject that will later be made available on the
Templateinstance. Such data may be used, for example, by the template loader, or other template clients.
Backwards incompatible changes in 5.1¶
Database backend API¶
This section describes changes that may be needed in third-party database backends.
Dropped support for MariaDB 10.4¶
Upstream support for MariaDB 10.4 ends in June 2024. Django 5.1 supports MariaDB 10.5 and higher.
Dropped support for PostgreSQL 12¶
Upstream support for PostgreSQL 12 ends in November 2024. Django 5.1 supports PostgreSQL 13 and higher.
Features removed in 5.1¶
These features have reached the end of their deprecation cycle and are removed in Django 5.1.
See Features deprecated in 4.2 for details on these changes, including how to remove usage of these features.
BaseUserManager.make_random_password()method is removed.
- The model’s
Meta.index_togetheroption is removed.
length_istemplate filter is removed.
- The model
django.contrib.postgres.fields.CITextFieldare removed, except for support in historical migrations.
django.contrib.postgres.fields.CITextmixin is removed.
SimpleTestCase.assertFormsetError()method is removed.
TransactionTestCase.assertQuerysetEqual()method is removed.
- Support for passing encoded JSON string literals to
JSONFieldand associated lookups and expressions is removed.
- Support for passing positional arguments to
STATICFILES_STORAGEsettings is removed.
django.core.files.storage.get_storage_class()function is removed.