MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
django
Recherche

Django 5.2 release touts automatic model importing

mercredi 2 avril 2025, 22:51 , par InfoWorld
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 tag. Details for accessing Django can be found at djangoproject.com.

The release of Django 5.2 means that Django 5.1 has reached the end of mainstream support. A final minor bug release, version 5.1.8, which also was a security release, was issued on April 2. Django 5.1 will receive fixes for security and data losses until December 2025. Users are encouraged to upgrade before then. Django 5.0, meanwhile, has reached the end of extended support. A final security release, also issued on April 2, was labeled release 5.0.14. Django 6.0 is due in early 2026.
https://www.infoworld.com/article/3952899/django-5-2-release-touts-automatic-model-importing.html

Voir aussi

News copyright owned by their original publishers | Copyright © 2004 - 2025 Zicos / 440Network
Date Actuelle
jeu. 3 avril - 20:35 CEST