A simplified version of django-devserver limited to SQL tracing and Ajax dump.
Project description
A simplified version of django-devserver limited to SQL tracing and Ajax dump.
Motivations
django-devserver is a very nice and usefull package, but the project isn’t very active, and occasional problems related to new Django versions stay unfixed for long time even when a solution is available as PR.
Being mostly interested in tracing db queries, I finally decided to package a stripped down version of the project.
Quickstart
Install django-query-tracer:
pip install django-query-tracer
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'query_tracer',
...
)
Add django-query-tracer’s middleware:
MIDDLEWARE_CLASSES = [
...
'query_tracer.middleware.QueryTracerMiddleware',
...
]
Sample local setup fro development
# Install query_tracer
INSTALLED_APPS.append('query_tracer')
MIDDLEWARE_CLASSES += [
'query_tracer.middleware.QueryTracerMiddleware',
]
QUERYTRACER_MODULES = (
'query_tracer.modules.sql.SQLRealTimeModule',
'query_tracer.modules.sql.SQLSummaryModule',
'query_tracer.modules.ajax.AjaxDumpModule',
)
Features
See file “query_tracer/settings.py” for available options, and refer to django-devserver doc for usage/
Credits
This project is a stripped down version of:
django-devserver
Tools used in rendering this package:
History
0.1.0 (2017-09-25)
First release on PyPI.
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
Built Distribution
Hashes for django_query_tracer-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 184b73c1d78c5d0581744a2e0278d8e821d9a296151ad8310ca20df8e3fcf649 |
|
MD5 | a1db53628324b9662f20aeb5d79859c7 |
|
BLAKE2b-256 | 3722cd583397c18772744e57a681350b6f203199eedc1e89bdeed118c159fdc6 |