Skip to main content

A port of the Django debug toolbar to Flask

Project description

Flask Debug-toolbar

This is a port of the excellent django-debug-toolbar for Flask applications.

Usage

Installing 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.

Installation

Installing is simple with pip:

$ pip install flask-debugtoolbar

Changes

0.6.1 (2012-02-15)

Fixes:

  • Memory leak when toolbar was enabled

  • UnicodeDecodeError when request data contained binary data (e.g. session values)

Enhancements:

  • DEBUG_TB_ENABLED config setting to explicitly enable or disable the toolbar

  • DEBUG_TB_HOSTS config setting to enable toolbar only for specific remote hosts

  • New logo for Flask instead of Django

  • Monospaced font on table data

Thanks to kennethreitz and joeshaw for their contributions.

0.6 (2012-01-04)

Flask 0.8 or higher is required

Enhancements:

  • Flask 0.8 compatibility

Thanks to mvantellingen

Project details


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.6.1.tar.gz (54.6 kB view details)

Uploaded Source

File details

Details for the file Flask-DebugToolbar-0.6.1.tar.gz.

File metadata

File hashes

Hashes for Flask-DebugToolbar-0.6.1.tar.gz
Algorithm Hash digest
SHA256 460fb9056afa0e948d1b350b9f9004088a62e5d94dab9107053be827b3a3def1
MD5 f6b90e274b255c8b6a577a5f5b2b9f6b
BLAKE2b-256 0e20912700828c27db9442fa247f9db1f68ca6e5f0c57724be7c35a641844b4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page