Member-only story
Django 5.2 is officially here — what’s new?
Django 5.2 Officially Released 🎉 Here’s What’s New and Why You Should Upgrade
Explore the latest features, improvements, and updates in Django 5.2 and why upgrading is a smart move!
The Django team has today just released Django 5.2, bringing a host of new features that make development even smoother.
If you’re a Django developer, this update introduces enhancements that simplify database modeling, form handling, and shell interactions.
In this article, I’ll walk you through the key features of Django 5.2, why they matter, and how you can start using them today.
1. All Models are Automatically Imported in the Shell
Before Django 5.2, if you wanted to work with models in the interactive Django shell, you had to import them manually like this:
from myapp.models import Product, Customer
Now, Django automatically imports all models when you start the shell, making your workflow more efficient. You can just run:
python manage.py shell