This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

ddt-envelope

Simple solution to use django-debug-toolbar with non HTML views. Helps in inspecting/profiling endpoints that do not return HTML responses (like JSON endpoint).

It is tested on latest point releases of: django1.4, django1.5, django1.6, django1.7, django1.8 and each python version that is supported by given django releases accordingly (ie. python2.6, python2.7, python3.2, python3.3, python3.4).

Instalation

  1. Install with pip:

    pip install ddt-envelope
    
  2. Add ddt-envelope to your INSTALLED_APPS:

    if DEBUG is True:
        INSTALLED_APPS += (
            'ddt_envelope',
        )
    
  3. Add ddt_envelope at the end of your urls.py

    from django.conf import settings
    
    if 'ddt_envelope' in settings.INSTALLED_APPS:
       urlpatterns += patterns('',
           # note: you can use any prefix other than '__ddte__' but make
           #       sure it does not conflict with other url patterns
           url(r'^__ddte__/', include('ddt_envelope.urls')),
       )
    

Usage

Once installed and configured just insert __ddte__ or your custom prefix after hostname in browser of choice to inspect non-html views like:

http://example.com/__ddte__/maybe/json/

Customizing output

You can customize ddt_envelope responses either by providing custom template name for ddt_envelope.views.EnvelopeView or by overriding ddte/envelope.html template. Context variables passed to this templeta are:

  • path - “real” path of inspected view
  • response - response object returned by target inspected view
  • headers - dictionary of headers available in response returned by target inspected view
  • content - string with raw response content (JSON it will be reformated using json.dumps(..., indent=4))
Release History

Release History

0.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ddt-envelope-0.1.0.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting