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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for django_sql_queries-1.0.1.tar.gz
Algorithm Hash digest
SHA256 464af4f846b3281eb295f87e25d873fb774298f91e9f80333d763e050091e662
MD5 7c8cc84d4a262fd03265450c718ad6a2
BLAKE2b-256 b9a38f4fa61e581ee2ff8a9bd128e575d1c2b9ab2de8844b9b8285998c945bcf

See more details on using hashes here.

File details

Details for the file django_sql_queries-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sql_queries-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87325cdc50405cf5d80c6f0680f25e486013597b8465e8a1a0b8cb124edaf25f
MD5 e99e83c3c2522aafdb55b6dc87537814
BLAKE2b-256 190c8e883b15b4581cfade2d3d4bb02b88feba6812e2c545a15fc0234fc5d534

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page