Skip to main content

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:

  1. Install python 3.7 or greater on your system using pyenv
  2. Activate your project's virtual environment for installing this library
$ source <virtualenv-path>/bin/activate
  1. Install the package by running following command
$ pip install django-sql-queries
  1. Add in the list of middlewares of django project
MIDDLEWARE.append("django_sql_queries.middleware.SQLPrinterMiddleware")

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

django_sql_queries-1.0.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

django_sql_queries-1.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

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