mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2026-01-07 05:59:37 -06:00
Add DEBUG_TB_PANELS setting, so you can change the ordering and add/remove panels
This commit is contained in:
@@ -9,6 +9,11 @@ from flaskext.debugtoolbar import DebugToolbarExtension
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = True
|
||||
app.config['DEBUG_TB_PANELS'] = (
|
||||
'flaskext.debugtoolbar.panels.headers.HeaderDebugPanel',
|
||||
'flaskext.debugtoolbar.panels.logger.LoggingPanel',
|
||||
'flaskext.debugtoolbar.panels.timer.TimerDebugPanel',
|
||||
)
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user