Force debugging of non-HTML views in django-debug-toolbar.
Project description
Show django-debug-toolbar in non- or partial-HTML views.
Prerequisites
Python 2.7.x, 3.4.x, 3.5.x
Django 1.8, 1.9, 1.10
django-debug-toolbar 1.5 (may work on earlier versions as well, although not guaranteed).
Installation
Install latest stable version from PyPI:
pip install django-debug-toolbar-force
Add debug_toolbar_force.middleware.ForceDebugToolbarMiddleware to MIDDLEWARE_CLASSES of the your projects’ Django settings (you would typically do that in your dev settings only).
MIDDLEWARE_CLASSES += ( 'debug_toolbar.middleware.DebugToolbarMiddleware', 'debug_toolbar_force.middleware.ForceDebugToolbarMiddleware', )
Usage
In your browser, visit a non-HTML view and append ?debug-toolbar at the end.
GET http://localhost:8000/foo/json-view/?debug-toolbar
Testing
Simply type:
./runtests.py
or use tox:
tox
or use tox to check specific env:
tox -e py35
License
GPL 2.0/LGPL 2.1
Support
For any issues contact me at the e-mail given in the Author section.
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
Built Distribution
Hashes for django-debug-toolbar-force-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61f042d11e83e58551d81c0da2e6670d5cf80c010753938cb09960ae1b400f9 |
|
MD5 | 33e8b78e741d63d2e03501f167ea6779 |
|
BLAKE2b-256 | 9d14e2881e241d7c58a186ef36ffab3ea9a084a4158bfd78864f3af739f9d4ae |
Hashes for django_debug_toolbar_force-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfc68c41f5717cd86466226f2edcca187eddcb5d3e8c1e39b3a70ba158b91874 |
|
MD5 | ac89f881fd9a242b9bdfbe41e6567387 |
|
BLAKE2b-256 | 3a626784bd7a37b1048af878dde152177082e9a5c1e84328374d4ad75100d922 |