Add fancy debugtoolbar when debugging

This commit is contained in:
Feliciaan De Palmenaer 2015-06-09 22:24:48 +02:00
parent 71bfe073e6
commit 3d50650d8e
2 changed files with 4 additions and 0 deletions

View file

@ -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):

View file

@ -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