Skip to main content

Middleware that allow check the times applied and the SQL amount used on any request and response process on django

Project description

Welcome to the sqlinspector2!

Middleware that allow check the times applied and the SQL amount used on any request and response process on django 2.x

Installation using PIP command

  • Use the command "pip install sqlinspector2"

Configuring sqlinspector2 on django project

  • Add 'sqlinspector2' inside INSTALLED_APPS
  • Add 'sqlinspector2.middleware.SqlInspectorMiddleware' inside MiDDLEWARE settings
  • Set inside your settings.py the variable ENABLE_SQL_INSPECTOR by example:
ENABLE_SQL_INSPECTOR = True # If you want display the LOGS then set True else False
  • You need configure the logging settings first and after to configure it, you need to add the following logger:
'sqlinspector2': {
      'handlers': ['console'], # You can add 'file' or email handler too
      'level': 'DEBUG',
      'propagate': True,
  },
  • Run using the command "python manage.py runserver"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sqlinspector2-1.0.6-py2.py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 2 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