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

Uploaded Python 2 Python 3

File details

Details for the file sqlinspector2-1.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sqlinspector2-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0531a22387f8af8ef93a392ae6a144dfa0858e2e98c29bf0df4f51397315a434
MD5 cb7c76c29b2b96489ca3e032cb5d90a7
BLAKE2b-256 b68b658c6f23ea60183e31d9eaed739833e0720d764546d51795141fa7632505

See more details on using hashes here.

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