always enable flask_debugtoolbar when local run

This commit is contained in:
Son Nguyen Kim 2021-07-13 14:15:49 +02:00
parent eb8118e89e
commit 80d23b8c4f
1 changed files with 6 additions and 5 deletions

View File

@ -924,11 +924,12 @@ def local_main():
app = create_app()
# enable flask toolbar
# from flask_debugtoolbar import DebugToolbarExtension
# app.config["DEBUG_TB_PROFILER_ENABLED"] = True
# app.config["DEBUG_TB_INTERCEPT_REDIRECTS"] = False
# app.debug = True
# DebugToolbarExtension(app)
from flask_debugtoolbar import DebugToolbarExtension
app.config["DEBUG_TB_PROFILER_ENABLED"] = True
app.config["DEBUG_TB_INTERCEPT_REDIRECTS"] = False
app.debug = True
DebugToolbarExtension(app)
# warning: only used in local
if RESET_DB: