Fix DEBUG lookup in config

This commit is contained in:
Kumi 2022-08-02 13:31:01 +02:00
parent 8c464ba77a
commit 2aa8d62fdd
Signed by: kumi
GPG key ID: 5D1CE6AF1805ECA2

View file

@ -11,7 +11,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
CONFIG_FILE = AutoSecretKey(BASE_DIR / "config.ini", template="config.dist.ini") CONFIG_FILE = AutoSecretKey(BASE_DIR / "config.ini", template="config.dist.ini")
SECRET_KEY = CONFIG_FILE.secret_key SECRET_KEY = CONFIG_FILE.secret_key
DEBUG = CONFIG_FILE.config["App"]["Debug"] DEBUG = CONFIG_FILE.config.getboolean("App", "Debug", fallback=False)
ALLOWED_HOSTS = json.loads(CONFIG_FILE.config["App"]["Hosts"]) ALLOWED_HOSTS = json.loads(CONFIG_FILE.config["App"]["Hosts"])