From fcc3ce60bcfa57734a51723717fe681ee4bf1327 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 5 Feb 2022 16:39:41 +0800 Subject: Config format switched to .ini Eliminated toml from dependency list --- jimbrella/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jimbrella/web.py') 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("/") -- cgit v1.2.3