Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

What’s new in Django v4.0

Blog post from LogRocket

Post Details
Company
Date Published
Author
Popoola Temitope
Word Count
1,059
Company Posts That Month
94
Language
-
Hacker News Points
-
Summary

In December 2021, the Django team released Django v4.0, introducing several upgrades such as enhanced customization, template-based form rendering, and support for the Malay language, with a shift from the pytz to the zoneinfo time zone. The update also brought new security features like the scrypt password hasher, while dropping support for older versions of third-party packages such as PostgreSQL v9.6 and Oracle v18c, aligning with supported Python versions 3.8, 3.9, and 3.10. Developers are advised to resolve deprecation warnings before upgrading and to note changes in settings like CSRF_TRUSTED_ORIGINS, which now require schemes in URLs. Functional unique constraints have been enhanced with the introduction of the *expressions positional option, allowing for more flexible database restrictions. The article also emphasizes the importance of following best practices in localization and highlights that Django v5.x will localize dates and numbers by default.

Trends Found in this Post

No tracked trend matches for this post yet.