The Django 5.2 release, announced on April 2 by the Django Software Foundation, introduces several significant features. This version automates model importing in the shell, allowing for customizable management of imports from installed applications. It now supports composite primary keys with the new CompositePrimaryKey feature. Furthermore, the update simplifies the process of overriding BoundField updates. Another notable change is the addition of the extrabody block in the admin/base.html template, which facilitates the inclusion of custom code just before the closing </body> tag. Support is maintained for Python versions 3.10 to 3.13, while older versions 5.x will no longer be supported.
The latest version of Django introduces automatic model-importing in the shell, ends support for previous 5.x versions, and enhances features like composite primary keys.
Django 5.2 supports Python versions 3.10 to 3.13 and includes customizable automatic imports of models from all installed apps for greater convenience.
With the update, overriding BoundField updates is simplified as it can now be customized at the form, field, or project level.
The Django admin/base.html template now features a new block extrabody, allowing developers to add custom code seamlessly before the closing </body> tag.
Collection
[
|
...
]