Debug mode ALLOWED_HOSTS wildcard
This commit is contained in:
@@ -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>')
|
||||
|
||||
Reference in New Issue
Block a user