Skip to main content

Force debugging of non-HTML views in django-debug-toolbar.

Project description

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

Prerequisites

  • Python 2.7.x, 3.4.x, 3.5.x
  • Django 1.8, 1.9, 1.10
  • django-debug-toolbar 1.5 (may work on earlier versions as well, although not guaranteed).

Installation

  1. Install latest stable version from PyPI:

    pip install django-debug-toolbar-force
    
  2. Add debug_toolbar_force.middleware.ForceDebugToolbarMiddleware to MIDDLEWARE_CLASSES of the your projects’ Django settings (you would typically do that in your dev settings only).

    MIDDLEWARE_CLASSES += (
        '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.

Author

Artur Barseghyan <artur.barseghyan@gmail.com>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-debug-toolbar-force, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_debug_toolbar_force-0.1.1-py2.py3-none-any.whl (15.0 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-debug-toolbar-force-0.1.1.tar.gz (24.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page