Debug mode ALLOWED_HOSTS wildcard

This commit is contained in:
Aarni Halinen
2019-11-11 22:59:11 +02:00
parent c5df450a96
commit 368b28d241
+1
View File
@@ -18,6 +18,7 @@ DEBUG = os.getenv('DEBUG', False) == 'True'
URL = os.getenv("HOST", "sika.sik.party")
ALLOWED_HOSTS = ["localhost", "127.0.0.1", URL]
if DEBUG: ALLOWED_HOSTS = ["*"]
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv('SECRET_KEY', '<your secret key>')