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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1495fe869043e323839a1eacb8711e3be31182010d832917302e629422c4e1 |
|
MD5 | 0befc84e1e8056f188bee4cc543dcbe3 |
|
BLAKE2b-256 | e157c5d3e30b9c1dd73e0e7515cc913270a5867b726a9fae4ffdf1c727f1ddbb |
Hashes for django_debug_toolbar_force-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43b7f3b7b7daea0750892b83e839e19f8f66bd1c4856ef00af0382529e333b0f |
|
MD5 | cfa28f7fd7220bcf6deefdbb48791a31 |
|
BLAKE2b-256 | 64e0a83ef627aed773ee56ae3fca576d81eafa9d3ebad11e5f299af4717306ad |