Skip to main content

A Flask Debug Toolbar panel for Django SQL queries.

Project description

Flask DebugToolbar DjangoSQL Panel

This is a custom panel for Flask DebugToolbar that displays Django SQL queries.

Installation

Install the package using pip:

pip install Flask-DebugToolbar-DjangoSQL

## Usage

1. Make sure you have Flask and Flask-DebugToolbar installed in your project.

2. Add DjangoSQLPanel to your Flask DebugToolbar setup by including it in the DEBUG_TB_PANELS configuration:

```python
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension

app = Flask(__name__)
app.debug = True

# Configuration for Flask-DebugToolbar
app.config['DEBUG_TB_PANELS'] = [
    'flask_debugtoolbar_djangosql.panel.DjangoSQLPanel'
]

toolbar = DebugToolbarExtension(app)

if __name__ == "__main__":
    app.run()
  1. Access your Flask application with the debug mode enabled (app.run(debug=True)) and open the debug toolbar in your browser to see Django SQL queries.

Contributing

Feel free to contribute by forking the repository and sending pull requests. Please make sure to add tests for any new features or changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file Flask_DebugToolbar_DjangoSQL-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_DebugToolbar_DjangoSQL-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28875eccad7eb4a9aecfbdcba6750c53b6cb4336419287a394bee9bf250d6c87
MD5 3679f7ccd1992308116e0edd4cc90ea8
BLAKE2b-256 c04dd3a35488af717216e4b3cf870e42447afa3bcf305d165f99cd4ecb392182

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