Django 6
7 days ago
- #Python
- #Web Development
- #Django
- Django 6.0 supports Python 3.12, 3.13, and 3.14, dropping support for Python 3.10 and 3.11.
- New Content Security Policy (CSP) support helps protect against content injection attacks like XSS.
- Template partials introduced for better encapsulation and reusability of template fragments.
- Background Tasks framework added for running code outside the HTTP request-response cycle.
- Email handling updated to use Python's modern email API, replacing the legacy Compat32 API.
- Admin interface now uses Font Awesome Free icons (version 6.7.2).
- PBKDF2 password hasher default iteration count increased from 1,000,000 to 1,200,000.
- New GIS features include GEOSGeometry.hasm property, Rotate database function, and more.
- Postgres features include Lexeme expression for full-text search and system checks for installed apps.
- DEFAULT_AUTO_FIELD now defaults to BigAutoField, requiring updates for projects not already set.
- Deprecated features include positional arguments in django.core.mail APIs and legacy email MIMEBase objects.
- Removed features include support for cx_Oracle and various deprecated methods from Django 5.0 and 5.1.