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.5, 3.6, 3.7 and 3.8.
Django 1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2 and 3.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 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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c8c51e56991e00edbcbb81a2394638a10f304bf663bf1d49750a646d7c1deaa |
|
MD5 | c80c69582a9452fdb20a54324966ffc8 |
|
BLAKE2b-256 | a9d0e029fbb93ead432b96ec79ad1e99ed392af3d29e8d8fdb1de3509c80ee47 |
Hashes for django_debug_toolbar_force-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a9e9bcd80a110ff8e8395eca2702df2c45ed9331cd5c6a929b833774314ba5 |
|
MD5 | 7010b39b9e743691c1afdf3fa940cc23 |
|
BLAKE2b-256 | 34d463c160990889af6fda638f68248f44159b85c6d9e951968d040e03440263 |