1
Fork 0

Get debug from env

This commit is contained in:
Jake Howard 2024-06-09 10:55:48 +01:00
parent b530b2b3b5
commit 633d788cd6
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-13rey)pheg9^%jtworn_&3wl&$-l%40uza0!ijva+l$n5umuz3'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = os.environ.get("DEBUG", "true").lower() == "true"
ALLOWED_HOSTS = ["*"]