Skip to Content
Mastering Flask
book

Mastering Flask

by Jack Stouffer
September 2015
Intermediate to advanced
288 pages
5h 30m
English
Packt Publishing
Content preview from Mastering Flask

Flask Debug Toolbar

Flask Debug Toolbar is a Flask extension that aids development by adding debugging tools into the web view of your application. It gives you information such as the bottlenecks in your view rendering code, and how many SQLAlchemy queries it took to render the view.

As always, we will use pip to install Flask Debug Toolbar:

$ pip install flask-debugtoolbar

Next, we need to add Flask Debug Toolbar to the extensions.py file. As we will be modifying this file a lot in this chapter, here is the start of the file so far along with the code to initialize Flask Debug Toolbar:

from flask import flash, redirect, url_for, session from flask.ext.bcrypt import Bcrypt from flask.ext.openid import OpenID from flask_oauth import OAuth from flask.ext.login ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

An Introduction to Flask

An Introduction to Flask

Miguel Grinberg
Flask Blueprints

Flask Blueprints

Joel Perras
Flask By Example

Flask By Example

Gareth Dwyer

Publisher Resources

ISBN: 9781784393656Supplemental Content