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 Distribution

Flask-DebugToolbar-DjangoSQL-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file Flask-DebugToolbar-DjangoSQL-0.1.2.tar.gz.

File metadata

File hashes

Hashes for Flask-DebugToolbar-DjangoSQL-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c6e44c4573687f5740d477599543e49cec791d294aa8929e81e45011d2347936
MD5 815b6551116f9fbe3c7548dbc28a4f6e
BLAKE2b-256 2ca0d24634623de8fcfd07405d7a0de0b4c70bb2a586a1ef0e0b825244a4d34c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_DebugToolbar_DjangoSQL-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7055fa2178951cd86a26b430ab54c06dca3c69748d6b55c0d449a1969e5065b9
MD5 c6f124cf7502b371fb35211ac22ac232
BLAKE2b-256 723bb7eee6b00d7477d7b26072fa0122308d1be4ab61e4689c57aec0685066aa

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