Fix DEBUG lookup in config
This commit is contained in:
parent
8c464ba77a
commit
2aa8d62fdd
1 changed files with 1 additions and 1 deletions
|
@ -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"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue