Middleware to print out all SQL queries done, their count and execution time for each view that is processed for a request
Project description
Django SQL Queries
This project provides a middleware which can be used in django projects to print all SQL queries, their count and execution time for processed view before returning response for a request.
How to use:
- Install python 3.7 or greater on your system using pyenv
- Activate your project's virtual environment for installing this library
$ source <virtualenv-path>/bin/activate
- Install the package by running following command
$ pip install django-sql-queries
- Add in the list of middlewares of django project
MIDDLEWARE.append("django_sql_queries.middleware.SQLPrinterMiddleware")
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sql_queries-1.0.1.tar.gz.
File metadata
- Download URL: django_sql_queries-1.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
464af4f846b3281eb295f87e25d873fb774298f91e9f80333d763e050091e662
|
|
| MD5 |
7c8cc84d4a262fd03265450c718ad6a2
|
|
| BLAKE2b-256 |
b9a38f4fa61e581ee2ff8a9bd128e575d1c2b9ab2de8844b9b8285998c945bcf
|
File details
Details for the file django_sql_queries-1.0.1-py3-none-any.whl.
File metadata
- Download URL: django_sql_queries-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87325cdc50405cf5d80c6f0680f25e486013597b8465e8a1a0b8cb124edaf25f
|
|
| MD5 |
e99e83c3c2522aafdb55b6dc87537814
|
|
| BLAKE2b-256 |
190c8e883b15b4581cfade2d3d4bb02b88feba6812e2c545a15fc0234fc5d534
|