comment out flask-toolbar

This commit is contained in:
Son NK 2019-12-14 21:20:03 +02:00
parent fd5b4f91f9
commit 0b982a3f19
1 changed files with 5 additions and 7 deletions

View File

@ -22,7 +22,6 @@ from app.config import (
SHA1,
PADDLE_MONTHLY_PRODUCT_ID,
RESET_DB,
EMAIL_DOMAIN,
)
from app.dashboard.base import dashboard_bp
from app.developer.base import developer_bp
@ -375,14 +374,13 @@ def init_admin(app):
if __name__ == "__main__":
app = create_app()
# enable flask toolbar
# the toolbar is only enabled in debug mode:
app.debug = True
app.config["DEBUG_TB_PROFILER_ENABLED"] = True
app.config["DEBUG_TB_INTERCEPT_REDIRECTS"] = False
toolbar = DebugToolbarExtension(app)
# enable flask toolbar
# app.config["DEBUG_TB_PROFILER_ENABLED"] = True
# app.config["DEBUG_TB_INTERCEPT_REDIRECTS"] = False
#
# toolbar = DebugToolbarExtension(app)
# enable to print all queries generated by sqlalchemy
# app.config["SQLALCHEMY_ECHO"] = True