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

.. image::

.. image::

.. image::
:alt: Code Health

Shortcircuit Django middlewares for a list of views you want skipped


The full documentation is at


Install django-shortcircuit::

pip install django-shortcircuit

Then use it in a project::

Include it in your middleware classes, BEFORE middlewares you potentially want skipped
MIDDLEWARE_CLASSES = ( ... 'shortcircuit.middleware.ShortCircuitMiddleware', ... )

Define a list of urlpatterns you want skipped

SHORTCIRCUIT_URL_PATTERNS = (r'^/skip_me', r'^/also_me')


* This middleware allows skipping middlewares that aren't usefull for certain URL patterns.
It's targeted to applications where there is heavy processing done in middleware and for various reasons (code ownership, lack of time) it's hard to do proper refactoring
Bear in mind, this only skips process_view methods of middlewares used after ShortCircuitMiddleware

Running Tests

Does the code actually work?

tox -e py27-django19


Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-pypackage`_

.. _Cookiecutter:
.. _`cookiecutter-djangopackage`:


0.1.0 (2016-05-15)

* First release on PyPI
* Includes shortcircuiting middleware, bypassing process_view only
Release History

Release History


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

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
django_shortcircuit-0.1.0-py2.py3-none-any.whl (6.0 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 15, 2016
django-shortcircuit-0.1.0.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source May 15, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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