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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file sqlinspector2-1.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: sqlinspector2-1.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0531a22387f8af8ef93a392ae6a144dfa0858e2e98c29bf0df4f51397315a434 |
|
MD5 | cb7c76c29b2b96489ca3e032cb5d90a7 |
|
BLAKE2b-256 | b68b658c6f23ea60183e31d9eaed739833e0720d764546d51795141fa7632505 |