Skip to main content

Pluggable application, which puts a python stack trace in the SQL query as a comment (useful for debugging)

Project description

https://pypip.in/d/django-sql-stacktrace/badge.png

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sql-stacktrace-0.3.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file django-sql-stacktrace-0.3.1.tar.gz.

File metadata

File hashes

Hashes for django-sql-stacktrace-0.3.1.tar.gz
Algorithm Hash digest
SHA256 205ba1886b124e1ad3ae5999d0297f9b0971fc27124571b166c60ff3df582604
MD5 c237d738c34ffefd372558c533f29d38
BLAKE2b-256 7ae8af35d42e9fd5bba5ed34baf46736d0a038e88e7881a81072b198b5c83970

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