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.15.1.tar.gz
(346.0 kB
view details)
Built Distribution
File details
Details for the file flask_debugtoolbar-0.15.1.tar.gz
.
File metadata
- Download URL: flask_debugtoolbar-0.15.1.tar.gz
- Upload date:
- Size: 346.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c76666f1553641567da8d91c74fe92caa072cfc01429564aa5e109de10b1806 |
|
MD5 | f94d3efd6b2df1651ab2bf2269053fbc |
|
BLAKE2b-256 | c821a78b55c8d90e69d2724a8c37a3148dd5e9d47b39360130cf6a9f65c71d6a |
File details
Details for the file Flask_DebugToolbar-0.15.1-py3-none-any.whl
.
File metadata
- Download URL: Flask_DebugToolbar-0.15.1-py3-none-any.whl
- Upload date:
- Size: 411.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3043d96e9fb9bc3b13ee8a02a5ecc531974f2fdceefa19ce3ba4a700ad40f36 |
|
MD5 | a810af79680475057851732b5f475533 |
|
BLAKE2b-256 | 667917658fe19bb12871556f495a50e907a6ab0a2c0a5ed1c490e1cfa2f019b2 |