Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# django-sql-stacktrace

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 [PyPI](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!

Release history Release notifications | RSS feed

0.3.1

1 file

0.3.0

1 file

0.2.2

1 file

0.2

1 file

0.1

1 file

This release

0.1-alpha This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page