aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-08-17 12:41:24 +0300
committerBonfaceKilz2021-08-17 12:41:45 +0300
commitd89a13ef9f3f4da47432eb3555df3ada7bbfbb8b (patch)
treecf7f231066d0aea3a02c49fd897fe717e984822e /wqflask
parentb0610024e7cb5dec73742fd461cd662881869214 (diff)
downloadgenenetwork2-d89a13ef9f3f4da47432eb3555df3ada7bbfbb8b.tar.gz
wqflask: runserver: Add DebugToolbar when running in DEBUG mode
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/runserver.py3
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,