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"
Metadata
Release files for sqlinspector2 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqlinspector2-1.0.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / sqlinspector2-1.0.6-py2.py3-none-any.whl
| Download URL | sqlinspector2-1.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0531a22387f8af8ef93a392ae6a144dfa0858e2e98c29bf0df4f51397315a434
|
|
BLAKE2b-256 checksum How to use checksums |
b68b658c6f23ea60183e31d9eaed739833e0720d764546d51795141fa7632505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |