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 3.7, 3.8, 3.9, 3.10 and 3.11.
Django 2.2, 3.0, 3.1, 3.2, 4.0 and 4.1.
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
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:
pytest -vvv
or use tox:
tox
or use tox to check specific env:
tox -e py310
License
GPL-2.0-only OR LGPL-2.1-or-later
Support
For any security issues contact me at the e-mail given in the Author section.
For overall issues, go to GitHub.
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
File details
Details for the file django-debug-toolbar-force-0.2.tar.gz
.
File metadata
- Download URL: django-debug-toolbar-force-0.2.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab28dca4a5cd0261dfe555d709935f2dabbbb09b4be5ac0ce82103a8da0a735 |
|
MD5 | 13945542558675d2ffdef117adfd39d8 |
|
BLAKE2b-256 | 4250dd5da7546b5cc613fac977a1456cdac7e41b78c611c034cbfee579ca96e6 |
File details
Details for the file django_debug_toolbar_force-0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_debug_toolbar_force-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f580982051079dc5e85e13590d9f13d70bf012be693a81b167183cf9a3f6eec |
|
MD5 | 363bff2e560d6c8514c0f6fca19f1ff7 |
|
BLAKE2b-256 | 69e0587e010a8e58c5c4d258260a39cc6b28ecdecdd8be7242c5433567744ed2 |