Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which setting must be configured before deploying with DEBUG = False?

  1. A ALLOWED_HOSTS
  2. B INSTALLED_APPS
  3. C TIME_ZONE
  4. 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.

All Django MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as