mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
comment out flask-toolbar
This commit is contained in:
parent
fd5b4f91f9
commit
0b982a3f19
1 changed files with 5 additions and 7 deletions
12
server.py
12
server.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue