From 3d50650d8eef474ac0db299dab888bc1dfb4f30f Mon Sep 17 00:00:00 2001 From: Feliciaan De Palmenaer Date: Tue, 9 Jun 2015 22:24:48 +0200 Subject: [PATCH] Add fancy debugtoolbar when debugging --- app/app.py | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/app/app.py b/app/app.py index 2875171..4a502f6 100644 --- a/app/app.py +++ b/app/app.py @@ -3,6 +3,7 @@ from logging.handlers import TimedRotatingFileHandler from flask import Flask from flask.ext.bootstrap import Bootstrap, StaticCDN from flask.ext.sqlalchemy import SQLAlchemy +from flask_debugtoolbar import DebugToolbarExtension from airbrake import Airbrake, AirbrakeHandler @@ -16,6 +17,8 @@ app.extensions['bootstrap']['cdns']['bootstrap'] = StaticCDN() db = SQLAlchemy(app) +toolbar = DebugToolbarExtension(app) + class PrefixFix(object): def __init__(self, app, script_name): diff --git a/requirements.txt b/requirements.txt index ed260b9..021899d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ Flask==0.10.1 Flask-Admin==1.1.0 Flask-Bootstrap==3.3.4.1 +Flask-DebugToolbar==0.10.0 Flask-Login==0.2.11 Flask-Migrate==1.4.0 Flask-OAuthlib==0.9.1