Simple helper for inspecting non-html views with django-debug-toolbar
Project description
============
ddt-envelope
============
Simple solution to use django-debug-toolbar with non HTML views. Helps in e.g. profiling RESTful APIs.
Instalation
===========
1. Add the debug_toolbar directory to your Python path.
2. Add `ddt-envelope` to your `INSTALLED_APPS`:
```
INSTALLED_APPS = (
...
'ddt_envelope',
)
```
3. Add `ddt_envelope` to your `urls.py`
```
urlpatterns = patterns('',
...
url(r'^__ddte__/', include('ddt_envelope.urls')),
)
```
Using ddt-envelope
==================
To inspect non-html view with ddt-envelope just insert `__ddte__` after hostname, e.g.:
```
http://example.com/__ddte__/maybe/json/
```
ddt-envelope
============
Simple solution to use django-debug-toolbar with non HTML views. Helps in e.g. profiling RESTful APIs.
Instalation
===========
1. Add the debug_toolbar directory to your Python path.
2. Add `ddt-envelope` to your `INSTALLED_APPS`:
```
INSTALLED_APPS = (
...
'ddt_envelope',
)
```
3. Add `ddt_envelope` to your `urls.py`
```
urlpatterns = patterns('',
...
url(r'^__ddte__/', include('ddt_envelope.urls')),
)
```
Using ddt-envelope
==================
To inspect non-html view with ddt-envelope just insert `__ddte__` after hostname, e.g.:
```
http://example.com/__ddte__/maybe/json/
```
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
ddt-envelope-0.0.2.tar.gz
(2.7 kB
view hashes)