Skip to main content
Backend & Edge · DjangoTypical Baseline: 64 / 100 (Grade C)

Django Compliance Scanner: Settings Hardening, Privacy & EAA

Verify Django security settings in live production, catch missing CSP/COOP headers, audit Set-Cookie flags, and check email deliverability in 10 seconds.

Live HTML, DNS & TLS socket inspection

Top 4 Compliance Gaps on Django Sites

Security Headers & TLS

Django apps ship with SECURE_HSTS_SECONDS unset or miss Content-Security-Policy and Permissions-Policy.

Fix: Enable Django SecurityMiddleware settings + django-csp / Nginx headers.

EU Privacy & Consent Mode v2

Templates include analytics pixels pre-consent or leave SESSION_COOKIE_SECURE false.

Fix: Enforce SESSION_COOKIE_SECURE = True, CSRF_COOKIE_SECURE = True, and Consent Mode v2.

EAA 2025 & WCAG 2.2 AA

Custom widget templates omit alt text, skip links, or accessible button names.

Fix: Audit rendered HTML with ComplyPulse and add EN 301 549 statement.

Email Auth & Deliverability

Django send_mail() relays fail DMARC alignment when SPF exceeds 10 lookups.

Fix: Use DKIM-signed ESPs with aligned custom MAIL FROM domain.

Django Launch Checklist

  • Enable SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, and COOP in settings.py
  • Enforce Secure + HttpOnly + SameSite on session and CSRF cookies
  • Verify rendered Django templates pass WCAG 2.2 AA
  • Publish DMARC p=reject and /.well-known/security.txt

settings.py — Production Django Security & Cookie Flags

SECURE_SSL_REDIRECT = True
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_REFERRER_POLICY = "strict-origin-when-cross-origin"
SECURE_CROSS_ORIGIN_OPENER_POLICY = "same-origin"
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SAMESITE = "Lax"

Frequently Asked Questions

Does ComplyPulse detect Django cookie security attributes?

Yes. It checks initial Set-Cookie headers for Secure, HttpOnly, and SameSite attributes alongside third-party tracker scripts.

Free Live SSL & Headers CheckerTechnical PlaybookTool Comparisons