Overview
Django 6.0, released on December 3, 2025, introduces template partials, background tasks, native CSP support and a modern email system.
Main Features
Template partials
Template partials allow defining reusable fragments directly in templates, without creating separate files.
html
{% partial card %}
<div class="card">
<h3>{{ title }}</h3>
<p>{{ content }}</p>
</div>
{% endpartial %}
{% render_partial card title="Intro" content="Welcome" %}
Background tasks
Django 6.0 includes a lightweight background task system, without external dependencies like Celery for simple use cases.
python
from django.tasks import task
@task
def send_notification(user_id, message):
# Runs in the background
...
# Trigger
send_notification.enqueue(user_id=42, message='Welcome')
Native CSP and modern email
The CSP (Content Security Policy) middleware is now built in. The email system supports modern headers and async sending.
