Django 5.2 release touts automatic model importing


The latest version of the Python web framework features an automatic model-importing capability in the shell.  This release also spells the end of support levels for previous version 5.x releases.

Unveiled April 2 by the Django Software Foundation, the Django 5.2 release supports Python versions 3.10 to 3.13. This latest release features a shell management command that automatically imports models from all installed apps, with the behavior customizable to add or remove automatic imports. Additionally, support is offered for composite primary keys, and a new django.db.models.CompositePrimaryKey allows the creation of tables with a primary key consisting of multiple fields.

The Django update also makes it easier to override a BoundField update, since this now can be set to a form, field, or project level.  Elsewhere in Django 5.2, the admin/base.html template now offers a new block extrabody for adding custom code before the closing </body> tag. Details for accessing Django can be found at djangoproject.com.

About WN

Check Also

Trump Tariffs Live Updates: U.S. Markets Plunge From Shock of Tariffs

The global economic system that the United States has shaped and steered for more than …

Advertisment ad adsense adlogger