diff options
author | BonfaceKilz | 2021-08-17 12:41:24 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-08-17 12:41:45 +0300 |
commit | d89a13ef9f3f4da47432eb3555df3ada7bbfbb8b (patch) | |
tree | cf7f231066d0aea3a02c49fd897fe717e984822e /wqflask/runserver.py | |
parent | b0610024e7cb5dec73742fd461cd662881869214 (diff) | |
download | genenetwork2-d89a13ef9f3f4da47432eb3555df3ada7bbfbb8b.tar.gz |
wqflask: runserver: Add DebugToolbar when running in DEBUG mode
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r-- | wqflask/runserver.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index df957bd9..8198b921 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -23,6 +23,9 @@ app_config() werkzeug_logger = logging.getLogger('werkzeug') if WEBSERVER_MODE == 'DEBUG': + from flask_debugtoolbar import DebugToolbarExtension + app.debug = True + toolbar = DebugToolbarExtension(app) app.run(host='0.0.0.0', port=SERVER_PORT, debug=True, |