Django 5.2.x
        Supported until 2029-04-01
      
      
      
      
      
      
      
      
      
      
    Django 5.2 brings a host of enhancements designed to improve developer productivity, bolster performance, and enhance customization. Notably, it introduces several major new features that streamline workflows, modernize the framework’s architecture, and improve its support for asynchronous operations.
Release Highlights:
- Automatic models import in the shell: Models from all installed apps are auto-imported when running the shell, reducing setup time.
 - Composite Primary Keys support: The new 
CompositePrimaryKeyfield enables models to use multiple fields as primary keys. - Simplified 
BoundFieldcustomization: Developers can now more easily override form rendering by setting a customBoundFieldat project, form, or field level. - Expanded asynchronous support in authentication: A suite of new async methods and improved async backend implementations enhance performance and ease of use.
 - New form widgets and accessibility improvements: Introduction of widgets like 
ColorInput,SearchInput,TelInput; along with new accessibility attributes for forms. - Improved QuerySet value ordering: 
values()andvalues_list()now generate aSELECTclause in the specified order. - Enhanced response and request handling: New properties and methods on 
HttpResponseandHttpRequestadd flexibility and clarity when handling HTTP data. 
Upgrade Gotchas:
- Dropped support for PostgreSQL 13 and older versions of GDAL and PostGIS may require backend updates.
 - Default MySQL connection character set changed to utf8mb4, which may affect legacy databases.
 - Some minor backward-incompatible changes in areas such as error reporting and permission handling require attention.
 
Major Features:
- Automatic models import in the shell
 - Composite Primary Keys with 
models.CompositePrimaryKey - Simplified customization of 
BoundFieldfor forms - Expanded asynchronous methods in 
django.contrib.authand auth backends - New form widgets (
ColorInput,SearchInput,TelInput) and enhanced accessibility - Improved QuerySet and database function capabilities (e.g., 
JSONArray,set_returning) 
- 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.2.7 | 2025-10-01 | 
              
              
               
                SECURITY
               
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2.6 | 2025-09-03 | 
              
              
               
                SECURITY
               
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2.5 | 2025-08-06 | 
              
               
                BUGFIX
               
              
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2.4 | 2025-07-02 | 
              
               
                BUGFIX
               
              
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2.3 | 2025-06-10 | 
              
               
                BUGFIX
               
              
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2.2 | 2025-06-04 | 
              
              
               
                SECURITY
               
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2.1 | 2025-05-07 | 
              
              
               
                SECURITY
               
              
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2 | 2025-04-02 | 
              
              
              
               
                RELEASE
               
              
              
              
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2b1 | 2025-02-19 | 
              
              
              
              
              
              
               
                BETA
               
              
             | 
            Blog Post | Release Notes | GitHub | 
| 5.2a1 | 2025-01-16 | 
              
              
              
              
              
               
                ALPHA
               
              
              
             | 
            Blog Post | Release Notes | GitHub |