diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-02-05 16:39:41 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-02-05 16:39:41 +0800 |
commit | fcc3ce60bcfa57734a51723717fe681ee4bf1327 (patch) | |
tree | c8d883a6cd2b898fed85a7f717be34de242ded25 /jimbrella/web.py | |
parent | 14feb6a4378668d054d28a1335eacd2026b621dc (diff) |
Config format switched to .ini
Eliminated toml from dependency list
Diffstat (limited to 'jimbrella/web.py')
-rw-r--r-- | jimbrella/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jimbrella/web.py b/jimbrella/web.py index 479c22a..95d1020 100644 --- a/jimbrella/web.py +++ b/jimbrella/web.py @@ -2,13 +2,13 @@ import logging from flask import Flask, render_template from .admin import bp as admin_bp from .auth import bp as auth_bp -from .config import * +from .config import config # this logger is shared across modules # logging.basicConfig(filename=LOG_PATH, level=logging.DEBUG) app = Flask("jimbrella") -app.secret_key = FLASK_SECRET_KEY +app.secret_key = config.get("security", "secret_key") @app.route("/") |