Django 5.1.x
Supported until 2025-12-01
Django 5.1 ships with several exciting new features that enhance developer productivity, security, and performance. Among its many additions, new template utilities, improved database connection handling, and middleware enhancements stand out as real game changers.
Release Highlights:
- Introduction of the
{% querystring %}template tag for easier URL query parameter manipulation. - Support for PostgreSQL connection pools to reduce latency when establishing new DB connections.
LoginRequiredMiddlewareto enforce authentication on a global level while allowing exceptions with a dedicated decorator.- Enhanced async support across session backends, providing asynchronous APIs for session operations.
- Numerous improvements in accessibility across error pages, admin templates, and form fieldsets.
Upgrade Gotchas:
- Several backwards-incompatible changes, such as dropped support for older PostgreSQL, MariaDB, PostGIS, and GDAL versions, require careful upgrading.
- Some deprecated features have been removed in Django 5.1, so reviewing the deprecation notices and migration guides is necessary before upgrading.
- Storage settings removed: The
DEFAULT_FILE_STORAGEandSTATICFILES_STORAGEsettings (deprecated in Django 4.2) have been removed in Django 5.1. You must migrate to theSTORAGESsetting dictionary instead. See the Django 4.2 deprecation docs for migration guidance.
Major Features:
{% querystring %}template tag for streamlined query parameter manipulation in URLs.- PostgreSQL connection pool support to cut down on connection delays.
LoginRequiredMiddlewarethat globally enforces authentication with an option to exempt views using thelogin_not_requireddecorator.- Async improvements in Django’s session engines enabling asynchronous operations on sessions.
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
Released Versions
| Version | Release Date | Release Type | Blog Post | Release Notes | GitHub |
|---|---|---|---|---|---|
| 5.1.14 | 2025-11-05 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.13 | 2025-10-01 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.12 | 2025-09-03 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.11 | 2025-06-10 |
BUGFIX
|
Blog Post | Release Notes | GitHub |
| 5.1.10 | 2025-06-04 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.9 | 2025-05-07 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.8 | 2025-04-02 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.7 | 2025-03-06 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.6 | 2025-02-05 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.5 | 2025-01-14 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.4 | 2024-12-04 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1.3 | 2024-11-05 |
BUGFIX
|
Blog Post | Release Notes | GitHub |
| 5.1.2 | 2024-10-08 |
BUGFIX
|
Blog Post | Release Notes | GitHub |
| 5.1.1 | 2024-09-03 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 5.1 | 2024-08-07 |
RELEASE
|
Blog Post | Release Notes | GitHub |
| 5.1rc1 | 2024-07-24 |
RC
|
Blog Post | Release Notes | GitHub |
| 5.1b1 | 2024-06-26 |
ALPHA
|
Blog Post | Release Notes | GitHub |
| 5.1a1 | 2024-05-22 |
ALPHA
|
Blog Post | Release Notes | GitHub |