• Language: en
  • Documentation version: development

Django 4.2 release notes - UNDER DEVELOPMENT

Expected April 2023

Welcome to Django 4.2!

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 4.1 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.

Python compatibility

Django 4.2 supports Python 3.8, 3.9, 3.10, and 3.11. We highly recommend and only officially support the latest release of each series.

What’s new in Django 4.2

Minor features

django.contrib.auth

  • The default iteration count for the PBKDF2 password hasher is increased from 390,000 to 480,000.

django.contrib.gis

  • The GeoJSON serializer now outputs the id key for serialized features, which defaults to the primary key of objects.

django.contrib.postgres

Cache

CSRF

Decorators

Email

Error Reporting

File Storage

File Uploads

Forms

Generic Views

Internationalization

Logging

Management Commands

  • makemessages command now supports locales with private sub-tags such as nl_NL-x-informal.
  • The new makemigrations --update option merges model changes into the latest migration and optimizes the resulting operations.

Migrations

Models

Requests and Responses

Security

Serialization

Signals

Templates

Tests

URLs

Utilities

Validators

Backwards incompatible changes in 4.2

Database backend API

This section describes changes that may be needed in third-party database backends.

Dropped support for MariaDB 10.3

Upstream support for MariaDB 10.3 ends in May 2023. Django 4.2 supports MariaDB 10.4 and higher.

Dropped support for PostgreSQL 11

Upstream support for PostgreSQL 11 ends in November 2023. Django 4.2 supports PostgreSQL 12 and higher.

Miscellaneous

  • The undocumented SimpleTemplateResponse.rendering_attrs and TemplateResponse.rendering_attrs are renamed to non_picklable_attrs.

Features deprecated in 4.2

Miscellaneous

Back to Top