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 and 3.7.
Django 1.8, 1.9, 1.10, 1.11, 2.0, 2.1 and 2.2.
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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d696697a8d7bd612b3b3eef15e00521341bb630cd94bef8ed5bcf29ad56bb97 |
|
MD5 | a0eda58054ad2c9b032951379943be1d |
|
BLAKE2b-256 | f8518871a7271410be6f483ee96e0a6a7abeb6c059890d28b08c08fe5aa22a40 |
Hashes for django_debug_toolbar_force-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b82799162c0b4ab690c6ee27cc53e524c78954db35b7b55802589277fd88e757 |
|
MD5 | 3f5109afc7170338787fbb3e7a01542a |
|
BLAKE2b-256 | 6bb16c2b0ac29f6d535f43a623b0d9c99d8a0389ed4baca4b31530cc1ce69e1a |