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()
- 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
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
Built Distribution
File details
Details for the file Flask-DebugToolbar-DjangoSQL-0.1.0.tar.gz
.
File metadata
- Download URL: Flask-DebugToolbar-DjangoSQL-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04bd534f6957a2b28abec8dd4946c8a6612d5f3925bc101eebff060721c77c2 |
|
MD5 | ba1201e1c7e6be08a780984ad89af90f |
|
BLAKE2b-256 | 48c0bac58408ca98422e1c3bffe64303d3deb51c985f04411fb13c6ac813f9f8 |
File details
Details for the file Flask_DebugToolbar_DjangoSQL-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: Flask_DebugToolbar_DjangoSQL-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90c3eaaf936f9929870b7876ad668ab8184f5c5a2ee69edb9a2f47d05412057 |
|
MD5 | 7a96ebef1263de77d9c59635732cace6 |
|
BLAKE2b-256 | 6f8a92e084ef17b5adf471419390d78bbfd41bdff9a1d84125e5d8eba5fbe17d |