diff options
author | zsloan | 2021-10-05 16:41:13 -0500 |
---|---|---|
committer | GitHub | 2021-10-05 16:41:13 -0500 |
commit | 70023c835bdeeffc48efafe96626ac5b01b5a6d2 (patch) | |
tree | 5e23e1139d2e01e2ad42969f58d148132db963a7 /wqflask/utility/startup_config.py | |
parent | de79d0d5087bf97f59a16327132fd287d57e1c3f (diff) | |
parent | 4c6a7e46dd7afe311c0bed38c4a69ddadf3cb416 (diff) | |
download | genenetwork2-70023c835bdeeffc48efafe96626ac5b01b5a6d2.tar.gz |
Merge branch 'testing' into feature/add_resizeable_columns
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("==========================================") |