django-debug-toolbar-force¶
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
toMIDDLEWARE
(orMIDDLEWARE_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
License¶
GPL-2.0-only OR LGPL-2.1-or-later
Author¶
Artur Barseghyan <artur.barseghyan@gmail.com>
Docs¶
Contents:
Release history and notes¶
Sequence based identifiers are used for versioning (schema follows below):
major.minor[.revision]
- It’s always safe to upgrade within the same minor version (for example, from 0.3 to 0.3.4).
- Minor version changes might be backwards incompatible. Read the release notes carefully before upgrading (for example, when upgrading from 0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.
0.1.5¶
2019-04-12
- Tested against Django 2.1 and 2.2.
- Drop Python 3.4 support.
- Tested against Python 3.7.
debug_toolbar_force package¶
Subpackages¶
Submodules¶
debug_toolbar_force.apps module¶
debug_toolbar_force.conf module¶
-
debug_toolbar_force.conf.
get_setting
(setting, override=None)[source]¶ Get setting.
Get a setting from
debug_toolbar_force
conf module, falling back to the default.If override is not None, it will be used instead of the setting.
Parameters: - setting – String with setting name
- override – Value to use when no setting is available. Defaults to None.
Returns: Setting value.