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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f0ec9ebbc0dd872ac810eb7d2033abb78c385fc90d8cf45c3adcc21dce23fb |
|
MD5 | 26b797ab732e53e3dd9ef89a9e8e4429 |
|
BLAKE2b-256 | 3f6d5d2aff883f701e8e3694100f3d3f6ac79db2ea38237a22b1f578967cac1a |
Hashes for django_debug_toolbar_force-0.1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a47451d910ec248c154d4efdf86ff001a04530f5b64daef73280b317364d09a |
|
MD5 | 57ffcf33cfdbbeeb21dafb76db961322 |
|
BLAKE2b-256 | cde17c64115a8d36ef092406e5e5bad39607e89ef827ac73b4eaaeaa5b5f75ee |