diff options
author | BonfaceKilz | 2022-07-04 15:25:42 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-07-04 15:37:52 +0300 |
commit | 28ca511f846eb08ed5a7a86ba36d3282df9bdd24 (patch) | |
tree | 9c6cbfc08a260a190db37b05a4d3564a8257ec1b | |
parent | 4fd21d4c55e064c8d98b0ba6577f156cc669c852 (diff) | |
download | genenetwork2-28ca511f846eb08ed5a7a86ba36d3282df9bdd24.tar.gz |
wqflask: Remove DebugToolbarExtension
This functionality, at least how we use it, is already provided
natively in python's pdb. Should someone need this, they can add it
manually.
* wqflask/runserver.py (app_config): Remove "flask_debugtoolbar"
import and instantiation.
* wqflask/utility/startup_config.py (app_config): Ditto.
-rw-r--r-- | wqflask/runserver.py | 2 | ||||
-rw-r--r-- | wqflask/utility/startup_config.py | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index 8198b921..fee29be1 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -23,9 +23,7 @@ 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, diff --git a/wqflask/utility/startup_config.py b/wqflask/utility/startup_config.py index 778fb64d..59923fa1 100644 --- a/wqflask/utility/startup_config.py +++ b/wqflask/utility/startup_config.py @@ -23,12 +23,9 @@ def app_config(): 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("==========================================") - show_settings() port = get_setting_int("SERVER_PORT") |