django/django · Weekly · Jun 29, 2026 - Jul 05, 2026

Django Weekly: Safer email docs, doc build fixes, and patch release prep (June 29 – July 5, 2026)

Commits summarized
8
Period
Jun 29 - Jul 05, 2026
Published
Jul 06, 2026

Django Weekly Development Report — June 29 – July 5, 2026

If you follow Django’s development or maintain a project based on it, this week’s commits are heavy on documentation safety, security hygiene for email handling, and housekeeping that keeps the release pipeline smooth. Below are the highlights from the 8 commits merged during this period.

📬 Safer Email Examples in Documentation

Mike Edmunds landed two related patches that modernise Django’s email guidance in the forms and topics docs.

  • #37162 — Updated ContactForm docs example to use safe practices

    The classic ContactForm example no longer uses the user-supplied sender address as from_email (a phishing vector). It’s now renamed to contact_email and placed in the reply_to header. The cc_myself checkbox was removed (it could be abused to send spam) and replaced with an urgent field to keep a BooleanField example alive. Several outdated output examples were also fixed.

  • #34753 — Extended security and safety remarks in email topics docs

    The long-neglected “Preventing header injection” section was rewritten. It now explains that Django (via Python’s smtplib) prevents CRLF injection by default, adds guidance on safely formatting email addresses with display names, and warns that custom backends bypassing Django’s protections must handle injection themselves. The ADMINS, DEFAULT_FROM_EMAIL, and SERVER_EMAIL settings docs now link to the new “Formatting email addresses” section.

🐛 Doc Build Warnings Cleanup

Several minor but welcome fixes to silence Sphinx warnings that had crept into the documentation build.

🔧 Release & Housekeeping

  • Stub release notes for 6.0.7 and 5.2.16 — Jacob Walls added the boilerplate release notes and dates for the upcoming patch releases.
  • asgiref bump reminder added to release checklist — Jacob Walls added a note to remind releasers to bump the asgiref dependency.
  • Test base file renamed — Tim Graham renamed tests/migrations/test_base.py to tests/migrations/base.py to align with the convention used elsewhere (none of its code is a test itself, only shared base classes).

This report covers the 8 commits merged between June 29 and July 5, 2026. The full change log is available on GitHub.

Repository updates

Follow future updates

Get generated django/django development summaries without adding another panel to your dashboard.

Sign in to choose an email address and delivery schedule.

Sign in to subscribe