ajeebkp23 / django-debug-toolbar-force

Show Django Debug Toolbar in non- or partial-HTML views.

Home Page:https://pypi.python.org/pypi/django-debug-toolbar-force

Repository from Github https://github.comajeebkp23/django-debug-toolbar-forceRepository from Github https://github.comajeebkp23/django-debug-toolbar-force

django-debug-toolbar-force

Show django-debug-toolbar in non- or partial-HTML views.

PyPI Version Build Status GPL-2.0-only OR LGPL-2.1-or-later

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

  1. 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
  2. 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-only OR LGPL-2.1-or-later

Support

For any issues contact me at the e-mail given in the Author section.

Author

Artur Barseghyan <artur.barseghyan@gmail.com>

About

Show Django Debug Toolbar in non- or partial-HTML views.

https://pypi.python.org/pypi/django-debug-toolbar-force


Languages

Language:Python 82.7%Language:Shell 16.0%Language:HTML 1.3%