- https://adamj.eu/tech/2025/04/07/django-whats-new-5.2/#automatic-model-imports-in-the-shell

The new How to customize the shell command (https://docs.djangoproject.com/en/5.2/howto/custom-shell) documentation page covers adding extra automatic imports by defining a custom shell command override.

Here’s an example that goes beyond the docs:

Thanks @adamchainz 🙏🏻

#python #webdev #django #Django5.2 #djangonews

Django: what’s new in 5.2 - Adam Johnson

Django 5.2 was released last Wednesday, another exciting step forward for our favourite web framework. It comes with a composite of new features, contributed to by many, some of which I am happy to have helped with. Below is my pick of highlights from the release notes.