From 05d40216ee96649038f465ae2f28ac7ba28c5048 Mon Sep 17 00:00:00 2001 From: doobry Date: Thu, 24 Oct 2019 14:08:48 +0200 Subject: Add support for external config files (Fixes: #33) --- main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'main.py') diff --git a/main.py b/main.py index 2309bf8..bd1a0c3 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,7 @@ def create_app(test_config=None): app.config['UPLOAD_FOLDER'] = './uploads/' app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates' + app.config.from_object('config') # optionally load settings from config.py app.jinja_loader = jinja2.ChoiceLoader([ # type: ignore jinja2.FileSystemLoader(app.config['CUSTOM_TEMPLATES_DIR']), -- cgit v1.3