fix dumbest bug from django guide (i will find them)

This commit is contained in:
Walter 2025-02-21 02:39:03 +01:00
parent 0838dad019
commit 3623860302

View File

@ -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")