Before shipping a Django project to production, run python manage.py check –deploy: it scans your settings file and lists security holes such as DEBUG = True, a SECRET_KEY that is too short, missing HTTPS, or cookies without the Secure flag. The command ships with every Django project and finishes in seconds — but it is only accurate when run against your production settings. Running it on dev settings gives misleading results.
The Problem
Production settings mistakes rarely crash the app, so they slip through easily. A freshly created project, deployed as-is without a settings review, carries a whole set of dev defaults: DEBUG = True, a short default SECRET_KEY, an empty ALLOWED_HOSTS, and missing security middleware.…