Django 5.1 released
The Django team is happy to announce the release of Django 5.1.
The release notesshowcase a kaleidoscope of improvements. A few highlights are:
Easier guardrails for authentication: the new and shiny LoginRequiredMiddleware,when added to <tt class="docutils literal">MIDDLEWARE</tt>, enforces authentication for all views by default.
A more inclusive framework: Django 5.1 includes several accessibilityenhancements, such as improved screen reader support in the admininterface, more semantic HTML elements, and better association of help textand labels with form fieldsets.
The second oldest ticket fixed in this release provides the long awaitedquerystring template tag,which greatly simplifies the handling of query strings when building URLs intemplates.
(If you are curious about the oldest ticket fixed in this release, check out Ticket #10743.)
You can get Django 5.1 from our downloads page or from the Python Package Index. The PGP key ID used for thisrelease is Natalia Bidart: 2EE82A8D9470983E.
With the release of Django 5.1, Django 5.0 has reached the end of mainstreamsupport. The final minor bug fix release, 5.0.8, was issued yesterday.Django 5.0 will receive security and data loss fixes until April 2025. Allusers are encouraged to upgrade before then to continue receiving fixes forsecurity issues.
See the downloads page for a table ofsupported versions and the future release schedule.
https://www.djangoproject.com/weblog/2024/aug/07/django-51-released/