A long-term support release that adds Psycopg 3 support, comments on columns and tables, and the STORAGES setting.
Download Django 4.2 LTS PDF Official release notes
Release notes
- Released: April 3, 2023
- Python: 3.8 – 3.12
- Support: Long-term support (LTS)
Read the full notes, including backwards-incompatible changes, at docs.djangoproject.com.
New features
- Psycopg 3 support for PostgreSQL.
- Column and table comments with db_comment and db_table_comment.
- STORAGES setting for configuring file storages.
- In-memory file storage backend.
- Filtering against window expressions.
Deprecated features
- Meta.index_together: use Meta.indexes.
- DEFAULT_FILE_STORAGE and STATICFILES_STORAGE: use STORAGES.
- The length_is template filter.
- The PostgreSQL CICharField, CIEmailField and CITextField.
- BaseUserManager.make_random_password().