Django 6.0 introduces built-in Content Security Policy support for XSS protection, template partials for reusable fragments, and a background tasks framework for offloading work. The release adopts Python's modern email API, adds async pagination, and improves GIS capabilities. It requires Python 3.12+ and drops MariaDB 10.5 support. Breaking changes include BigAutoField as the default primary key type and stricter ORM expression requirements. Several features are deprecated, including positional arguments in email APIs and PostgreSQL-specific aggregates now available across databases.
Table of contents
Minor features ¶Sort: