Which setting must be configured before deploying with DEBUG = False?
- A ALLOWED_HOSTS
- B INSTALLED_APPS
- C TIME_ZONE
- D LANGUAGE_CODE
Answer
ALLOWED_HOSTS
With DEBUG off, Django refuses requests whose Host header is not in ALLOWED_HOSTS, returning a 400 error if it is left empty.





