fix: env var DEBUG

This commit is contained in:
relikd
2023-05-30 17:39:15 +02:00
parent 1d37d724e5
commit 74b6e82936

View File

@@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'insecure-+3@1h+@wz%6m*dpx0e')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DEBUG', True)
DEBUG = os.environ.get('DEBUG', 'yes').lower() not in ['false', 'no', '0']
ALLOWED_HOSTS = []