Adds the {% querystring %} template tag, PostgreSQL connection pools and LoginRequiredMiddleware.
Download Django 5.1 PDF Official release notes
Release notes
- Released: August 7, 2024
- Python: 3.10 – 3.13
- Support: Standard release
Read the full notes, including backwards-incompatible changes, at docs.djangoproject.com.
New features
- {% querystring %} tag for building query strings in templates.
- PostgreSQL connection pools (psycopg 3).
- LoginRequiredMiddleware, which requires login by default.
- ModelAdmin.list_display accepts "__" lookups across relations.
- FileSystemStorage(allow_overwrite=True).
Deprecated features
- CheckConstraint.check: use condition.
- ModelAdmin.lookup_allowed() without the request argument.
- FileSystemStorage.OS_OPEN_FLAGS.
- GeoIP2.coords().