Makes zoneinfo the default time zone implementation, and adds functional unique constraints, the scrypt password hasher and a built-in Redis cache backend.
Download Django 4.0 PDF Official release notes
Release notes
- Released: December 7, 2021
- Python: 3.8 – 3.10
- Support: Standard release
Read the full notes, including backwards-incompatible changes, at docs.djangoproject.com.
New features
- zoneinfo becomes the default time zone implementation.
- Functional unique constraints.
- scrypt password hasher.
- Built-in Redis cache backend.
- Template-based form rendering for forms, formsets and errors.
Deprecated features
- pytz support (the USE_DEPRECATED_PYTZ transitional setting).
- The USE_L10N setting (localization is on by default).
- django.utils.baseconv and django.utils.datetime_safe.
- The SERIALIZE test database setting.