A toolbar overlay for debugging Flask applications.
Project description
This is a port of the excellent django-debug-toolbar for Flask applications.
Installation
Installing is simple with pip:
$ pip install flask-debugtoolbar
Usage
Setting up the debug toolbar is simple:
from flask import Flask from flask_debugtoolbar import DebugToolbarExtension app = Flask(__name__) # the toolbar is only enabled in debug mode: app.debug = True # set a 'SECRET_KEY' to enable the Flask session cookies app.config['SECRET_KEY'] = '<replace with a secret key>' toolbar = DebugToolbarExtension(app)
The toolbar will automatically be injected into Jinja templates when debug mode is on. In production, setting app.debug = False will disable the toolbar.
See the documentation for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-DebugToolbar-0.13.1.tar.gz
(259.3 kB
view hashes)
Built Distribution
Close
Hashes for Flask-DebugToolbar-0.13.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c26aa013a9813b8886857bf0ec24d28ab494114a264baf06c951cadc4dd0dae |
|
MD5 | b2e0a7c99851b6861c3c3b514a587f24 |
|
BLAKE2b-256 | cf756891fdfeed6c6c8ca8af5d90c772e856c590312ce68c491c6aac09a30b00 |
Close
Hashes for Flask_DebugToolbar-0.13.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 491c737f321830c06a2835784acf1fc8488fd257a0ef318810b3b6bed5f600d5 |
|
MD5 | 41eb0fa767f1cad39653da3d6b47612c |
|
BLAKE2b-256 | 5da3fb5f6fd765ba566f09fb736bcb7be99774106389d24f1ac5506866f507dd |