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 and 2.0
django-debug-toolbar 1.5 (may work on earlier versions as well, although not guaranteed).
Documentation
Documentation is available on Read the Docs.
Installation
Install latest stable version from PyPI:
pip install django-debug-toolbar-force
or latest stable version from GitHub:
pip install https://github.com/barseghyanartur/django-debug-toolbar-force/archive/stable.tar.gz
or latest stable version from BitBucket:
pip install https://bitbucket.org/barseghyanartur/django-debug-toolbar-force/get/stable.tar.gz
Add debug_toolbar_force.middleware.ForceDebugToolbarMiddleware to MIDDLEWARE (or MIDDLEWARE_CLASSES for older versions of Django) of the your projects’ Django settings (you would typically do that in your dev settings only).
MIDDLEWARE += ( '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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccdc180b406dae9759f35f493d167fc2a1c32588e3cfa69632e582a9e2fa1ac |
|
MD5 | 958b96e411ee8777729ab80c4fa9bbea |
|
BLAKE2b-256 | cc270b4d0657650f95e8748658f928e98f1210abe144d021579df5eef972e436 |
Hashes for django_debug_toolbar_force-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b88f5ae720987158121ce124f19f456726e29086e19168919fe4f822635e0a62 |
|
MD5 | b9757224a57ec181cbc8027395048556 |
|
BLAKE2b-256 | ae437bf35ecd5bddf7d68792a00461d691fb14e13ab13ca858bd2d13ef6c4f0a |