RepoJournal
Django

@django

Python's batteries-included web framework

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

DJANGO DOCS PATCH FIXES EMAIL SECURITY ANTIPATTERN IN FORMS GUIDE

By RepoJournal · Filed · About Django

1 person shipped this

Django's ContactForm documentation example was teaching developers to do exactly what you shouldn't do with user email addresses, and it's finally fixed.

The Forms topic reference docs just got a critical update that removes a textbook security mistake [1]. The old example was using user-provided sender addresses directly as `from_email`, which creates an open door for email spoofing and spam campaigns. Django maintainers renamed the field to `contact_email`, restricted it to `reply_to` only, and identified all outgoing mail as coming from the actual application address instead [2]. They also axed the `cc_myself` checkbox that let forms send arbitrary copies to users, replacing it with an `urgent` field to demonstrate `BooleanField` without the spam liability. This is the kind of quiet documentation fix that prevents a thousand production incidents. Stub release notes are now live for Django 6.0.7 and 5.2.16, signaling patches are locked in and shipping soon [3].

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fixed #37162 -- Updated ContactForm docs example to use safe practices. ↗ django/django
  2. [2] Fixed #37162 -- Updated ContactForm docs example to use safe practices. django/django
  3. [3] Added stub release notes and release date for 6.0.7 and 5.2.16. django/django

Quick answers

What shipped in Django on July 1, 2026?
Django's ContactForm documentation example was teaching developers to do exactly what you shouldn't do with user email addresses, and it's finally fixed. In total, 3 commits and 1 pull requests landed.
Who contributed to Django on July 1, 2026?
1 developer shipped this update, including medmunds.
What were the notable Django updates?
Fixed #37162 -- Updated ContactForm docs example to use safe practices, Fixed #37162 -- Updated ContactForm docs example to use safe practices, and Added stub release notes and release date for 6.0.7 and 5.2.16.

More from @django

Daily updates, in your inbox

Follow Django

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.