diff --git a/yamdl_playground/settings.py b/yamdl_playground/settings.py index 64bf304..0b8db05 100644 --- a/yamdl_playground/settings.py +++ b/yamdl_playground/settings.py @@ -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 = ["*"]