Fix debug
This commit is contained in:
parent
4cbdb0bc54
commit
c87f4eed37
1 changed files with 1 additions and 2 deletions
|
@ -42,8 +42,7 @@ EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
|
||||||
|
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
# DEBUG = os.getenv("DEBUG", "true").lower() == "true"
|
DEBUG = os.getenv("DEBUG", "true").lower() == "true"
|
||||||
DEBUG = False
|
|
||||||
ALLOWED_HOSTS = ["localhost"] # Required for healthcheck
|
ALLOWED_HOSTS = ["localhost"] # Required for healthcheck
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
ALLOWED_HOSTS.extend(["127.0.0.1"])
|
ALLOWED_HOSTS.extend(["127.0.0.1"])
|
||||||
|
|
Reference in a new issue