Force debugging of partial- or non-HTML views in django-debug-toolbar.
Project description
Show django-debug-toolbar in non- or partial-HTML views.
Prerequisites
Python 2.7, 3.4, 3.5, 3.6
Django 1.8, 1.9, 1.10, 1.11
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa3ce3419f12ea07717a87461809a9c841f23e95ada0ba857c0e2819500a646 |
|
MD5 | dd5b674b1997281b3096ec35e41aaa84 |
|
BLAKE2b-256 | 6856db5461782eab9641ec2ffb2dd7bfe882ded67e512fca4c147199d1f9cbe3 |
Hashes for django_debug_toolbar_force-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5bef153acfd9d2a15cdf97ebf21aa59d534dfaf803dabab28b18016df934a3 |
|
MD5 | 6e315f75b1304a65fe489d79997cd2c3 |
|
BLAKE2b-256 | 4c29e695d47756f6313e90bb18d0352825c4af6b2ae2ceb27f4ce0459c73ee72 |