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
Close
Hashes for django_sql_queries-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87325cdc50405cf5d80c6f0680f25e486013597b8465e8a1a0b8cb124edaf25f |
|
MD5 | e99e83c3c2522aafdb55b6dc87537814 |
|
BLAKE2b-256 | 190c8e883b15b4581cfade2d3d4bb02b88feba6812e2c545a15fc0234fc5d534 |