Allow all hosts on dev server

This commit is contained in:
Jan Tuomi
2017-09-15 20:58:46 +03:00
parent 040c9641ea
commit f800f5c342
+4 -1
View File
@@ -30,7 +30,10 @@ SECRET_KEY = '7p$85^4ibb^p4-=vs44b7!y0e-zemugze18@a#30&71=a8)dp('
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
if not IS_DOCKER:
ALLOWED_HOSTS = []
else:
ALLOWED_HOSTS = ["*"]
# Application definition