Fix type conversion, get bool instead

This commit is contained in:
Xavier Fiechter 2023-08-13 00:38:50 +02:00
parent 803cd71a1f
commit 645ba32909

View file

@ -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: