diff --git a/app/settings/settings.py b/app/settings/settings.py index e34a4e1..14088a3 100644 --- a/app/settings/settings.py +++ b/app/settings/settings.py @@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = bool(os.environ.get("DJANGO_DEBUG", default=0)) or platform == "win32" +DEBUG = bool(int(os.environ.get("DJANGO_DEBUG", default=0))) or platform == "win32" def load_insecure_key(): print("Warning: Insecure SECRET_KEY loaded")