Your project description goes here
Project description
This application shows the database queries
Installation
Install sql_debug:
pip install django-simple-sql-debug
Add it to your INSTALLED_APPS:
INSTALLED_APPS = [
...
'sql_debug',
...
]
Add sql_debug’s URL patterns:
from sql_debug import urls as sql_debug_urls
urlpatterns = [
...
path('sql_debug/', include(sql_debug_urls)),
...
]
Settings
SQL_DEBUG_PATHS_BLACKLIST = [
'/sql_debug',
'/admin',
'/favicon.ico',
] # by default
SQL_DEBUG_MAX_REQUESTS = 20 # by default
- SQL_DEBUG_BLACKLISTED_PATHS
A list of paths that are skipped by the application.
- SQL_DEBUG_MAX_REQUESTS
Maximum number of queries stored in the database.
Production
Add in production_settings.py
# Remove django-sql-debug
INSTALLED_APPS.remove('sql_debug')
MIDDLEWARE.remove('sql_debug.middleware.SqlDebugMiddleware')
Screenshots
Credits
Tools used in rendering this package:
History
0.1.0 (2019-07-30)
First release on PyPI.
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
Close
Hashes for django-simple-sql-debug-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb60b5148406ef5a395a58b06c88b7472b4dd02dd8d05e44a8e8e04c145210ce |
|
MD5 | 55b77d37b3e70487fbd8ad720033a5ca |
|
BLAKE2b-256 | 7208e9d01a1aacf4d57406ee2120b39889258dd2054205d9b5551f6e8de2ae3d |
Close
Hashes for django_simple_sql_debug-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24758a4a68e46adbbbc1ba73afe30efaf13c0c1579b3951159add9c8cfec696 |
|
MD5 | e8dea30cda0eb315c2ab9e7a0d16fcc1 |
|
BLAKE2b-256 | 8827bd106684401ad6f5063ae1f60637f6f4b46fd52ee84f4857349c8f05d0d4 |