django-sql-stacktrace 0.3.0

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

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!

BSD

Author

Mikhail Andreev

Pip

django-sql-stacktrace==0.3.0

Classifiers

  • Environment :: Web Environment
  • Framework :: Django
  • Programming Language :: Python
  • License :: OSI Approved :: BSD License
  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Software Development :: Libraries :: Application Frameworks
  • Programming Language :: SQL
  • Topic :: Software Development :: Debuggers
File Type Python Version Uploaded On Downloads
django-sql-stacktrace-0.3.0.tar.gz Source June 30, 2015 2,108
Version Release Date
0.3.0 June 30, 2015
0.2.2 Sept. 17, 2013
0.2 Oct. 10, 2012
0.1 Aug. 23, 2012
0.1-alpha Aug. 26, 2015
Date Package Version Action
Aug. 26, 2015, 12:26 a.m. django-sql-stacktrace 0.2.2 Release Created
Aug. 26, 2015, 12:26 a.m. django-sql-stacktrace 0.2 Release Created
Aug. 26, 2015, 12:26 a.m. django-sql-stacktrace 0.3.0 Release Created
Aug. 26, 2015, 12:26 a.m. django-sql-stacktrace 0.1-alpha Release Created
Aug. 26, 2015, 12:26 a.m. django-sql-stacktrace 0.1 Release Created
Aug. 26, 2015, 12:26 a.m. django-sql-stacktrace Package Created