Pluggable application, which puts a python stack trace in the SQL query as a comment (useful for debugging)
Project description
Pluggable application, which puts a python stack trace in the SQL query as a comment (useful for debugging).
For more details see http://adw0rd.com/2012/django-sql-stacktrace/en/
After installed you can see in processlist a SQL-query and comment with python stack trace:
watch -n1 mysqladmin processlist --verbose
Or you can see in a log files, such as log_slow_queries or log-bin (aka ‘binlog’).
How to install this wonderful package?
Install from http://pypi.python.org/pypi/django-sql-stacktrace/:
pip install django-sql-stacktrace
Or install the dev-version from GitHub:
pip install -e git://github.com/adw0rd/django-sql-stacktrace.git#egg=sqlstacktrace
Add to settings.py:
INSTALLED_APPS = ( 'sqlstacktrace', ) SQL_STACKTRACE = True
Start runserver or any other server:
./manage.py runserver 8000
I wish you a successful debugging!
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 Distribution
Hashes for django-sql-stacktrace-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51b36971112000247281bdde3ebe64fba32fcdfc32fd3f972ce3f7bcd23bf39 |
|
MD5 | 64a768b88d681ff5b0c98837cc89187d |
|
BLAKE2b-256 | 71d510ea3094eaa630909eb905b078f5639a57de3ad9026c333eb23042701c1a |