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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for Flask-DebugToolbar-DjangoSQL-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c04bd534f6957a2b28abec8dd4946c8a6612d5f3925bc101eebff060721c77c2
MD5 ba1201e1c7e6be08a780984ad89af90f
BLAKE2b-256 48c0bac58408ca98422e1c3bffe64303d3deb51c985f04411fb13c6ac813f9f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_DebugToolbar_DjangoSQL-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d90c3eaaf936f9929870b7876ad668ab8184f5c5a2ee69edb9a2f47d05412057
MD5 7a96ebef1263de77d9c59635732cace6
BLAKE2b-256 6f8a92e084ef17b5adf471419390d78bbfd41bdff9a1d84125e5d8eba5fbe17d

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