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 py36
License
GPL-2.0-only OR LGPL-2.1-or-later
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 024ffa8e7d2dfbd542eacb51caed2fb2827a8597fbfc43295b2817338105ec6e |
|
MD5 | a4af84bae2a42d69cb312eed3febfd3e |
|
BLAKE2b-256 | dc184d8718ab042469e9f3cc2bf51ce17351f00ecb3bdaa7270a9f25a0074efb |
Hashes for django_debug_toolbar_force-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c898e62bab2f938ba2ddcb6c39fbcf9625968af44d319875ba41b1f8c54164 |
|
MD5 | 9ee7152df58b949dbef5b64b4b6aee73 |
|
BLAKE2b-256 | 77e4124720b54f43aac6fed84b8af085c45f108e3415114d24e2770aff92352e |