-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad Request when DEBUG=False and missing ALLOWED_HOST #5
Comments
Thanks for the insight! We don't have multiple virtual hosts per server in our current live deployments at the moment; however, it's obviously a requirement from Django to strongly and explicitly whitelist thoses web server hosts that a browser may send requests to. @lukpueh or @RohanBhirangi, do you want to suggest patches? |
I'll make
My browser shows a nondescript |
This addresses SensibilityTestbed#5 where a missing `ALLOWED_HOSTS` in non-`DEBUG` mode was reported to cause problems. https://docs.djangoproject.com/en/1.8/ref/settings/#allowed-hosts
This follows SeattleTestbed/custominstallerbuilder@55d625e and SensibilityTestbed/custominstallerbuilder#5, which address issues with a missing `ALLOWED_HOSTS`.
Alright, SeattleTestbed/custominstallerbuilder@55d625e and SeattleTestbed/docs@27549f0 fix this issue for SeattleTestbed. We can close this issue following the next sync/pull from there. |
In
DEBUG=False
mode Django requires the settingALLOWED_HOST
listing allowed hosts, or else it responds withHTTP 400 (Bad request)
, see:This should be explicitly mentioned in
settings_base.py
orsettings.py
as a placeholder or comment and/or in the Installation docs.The text was updated successfully, but these errors were encountered: