diff options
author | Alexander Kabui | 2021-10-13 08:28:16 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-10-13 08:28:16 +0300 |
commit | 5f855ab3c605201175482591073a10692516fd5c (patch) | |
tree | 4ae1dc86a467ea3b7e3b23519b8875fa0da0548f /wqflask/utility/startup_config.py | |
parent | db9225caf0a78b13af1892d47c69463e00262d03 (diff) | |
parent | a212ad123f902b6a9c74bcac1d98bc274cebbdda (diff) | |
download | genenetwork2-5f855ab3c605201175482591073a10692516fd5c.tar.gz |
resolve merge conflict
Diffstat (limited to 'wqflask/utility/startup_config.py')
-rw-r--r-- | wqflask/utility/startup_config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/utility/startup_config.py b/wqflask/utility/startup_config.py index 56d0af6f..778fb64d 100644 --- a/wqflask/utility/startup_config.py +++ b/wqflask/utility/startup_config.py @@ -20,8 +20,12 @@ def app_config(): import os app.config['SECRET_KEY'] = str(os.urandom(24)) mode = WEBSERVER_MODE - if mode == "DEV" or mode == "DEBUG": + if mode in ["DEV", "DEBUG"]: app.config['TEMPLATES_AUTO_RELOAD'] = True + if mode == "DEBUG": + from flask_debugtoolbar import DebugToolbarExtension + app.debug = True + toolbar = DebugToolbarExtension(app) print("==========================================") |