Django Weblog: Django 6.0 released
The Django team is happy to announce the release of Django 6.0.
The release notesassembles a mosaic of modern tools and thoughtful design. A few highlights are:
- Template Partials: modularize templates using small, named fragments for cleaner, more maintainable code. (GSoC project byFarhan Ali Raza, mentored byCarlton Gibson)
- Background Tasks: run code outside the HTTP request-response cycle with a built-in, flexible task framework. (Jake Howard)
- Content Security Policy (CSP): easily configure and enforce browser-level security policies to protect against content injection. (Rob Hudson)
- Modernized Email API: compose and send emails with Python'sEmailMessageclass for a cleaner, Unicode-friendly interface. (Mike Edmunds)
You can get Django 6.0 fromour downloads pageor fromthe Python Package Index.
The PGP key ID used for this release is Natalia Bidart:2EE82A8D9470983E
With the release of Django 6.0, Django 5.2 has reached the end of mainstream support. The final minor bug fix release,5.2.9, was issued yesterday. Django 5.2 will receive security and data loss fixes until April 2028. All users are encouraged to upgrade before then to continue receiving fixes for security issues.
Django 5.1 has reached the end of extended support. The final security release,5.1.15, was issued on Dec. 2, 2025. All Django 5.1 users are encouraged toupgradeto a supported Django version.
See thedownloads pagefor a table of supported versions and the future release schedule.
https://www.djangoproject.com/weblog/2025/dec/03/django-60-released/