From 645ba329097363933bf09bf0bfae2867587bca92 Mon Sep 17 00:00:00 2001 From: Xavier Fiechter Date: Sun, 13 Aug 2023 00:38:50 +0200 Subject: [PATCH] Fix type conversion, get bool instead --- labellabor/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labellabor/settings.py b/labellabor/settings.py index 26f6326..ff2e577 100644 --- a/labellabor/settings.py +++ b/labellabor/settings.py @@ -31,7 +31,7 @@ SECRET_KEY = proj_config.get("internal", "secret_key") CRYPTOGRAPHY_SALT = proj_config.get("internal", "crypto_salt") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = proj_config.get("internal", "debug") +DEBUG = proj_config.getboolean("internal", "debug") if DEBUG: ALLOWED_HOSTS = ["*"] else: