DEBUG = True in Django settings during development?When DEBUG is True, Django shows detailed error pages that help developers understand what went wrong. This should only be used during development, not in production.
ALLOWED_HOSTS = [] in production?When ALLOWED_HOSTS is empty, Django does not trust any host and returns a 'Bad Request (400)' error for all requests. This prevents host header attacks.
Django requires the engine string 'django.db.backends.postgresql' for PostgreSQL. Other options either use wrong engine names or different databases.
STATIC_URL = '/static/' is set, what URL will Django use to serve static files?The STATIC_URL setting tells Django the URL prefix to use when serving static files. Setting it to '/static/' means static files are accessed via URLs starting with '/static/'.
SECRET_KEY in a running Django production app, what problem might occur?The SECRET_KEY is used to sign cookies and tokens. Changing it invalidates existing sessions and tokens, causing users to be logged out and password resets to fail.