=============================
django-shortcircuit
=============================
.. image:: https://badge.fury.io/py/django-shortcircuit.png
:target: https://badge.fury.io/py/django-shortcircuit
.. image:: https://travis-ci.org/comandrei/django-shortcircuit.png?branch=master
:target: https://travis-ci.org/comandrei/django-shortcircuit
.. image:: https://landscape.io/github/comandrei/django-shortcircuit/master/landscape.svg?style=flat
:target: https://landscape.io/github/comandrei/django-shortcircuit/master
:alt: Code Health
Shortcircuit Django middlewares for a list of views you want skipped
Documentation
-------------
The full documentation is at https://django-shortcircuit.readthedocs.org.
Quickstart
----------
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')
Features
--------
* 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
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-pypackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.1.0 (2016-05-15)
++++++++++++++++++
* First release on PyPI
* Includes shortcircuiting middleware, bypassing process_view only
django-shortcircuit
=============================
.. image:: https://badge.fury.io/py/django-shortcircuit.png
:target: https://badge.fury.io/py/django-shortcircuit
.. image:: https://travis-ci.org/comandrei/django-shortcircuit.png?branch=master
:target: https://travis-ci.org/comandrei/django-shortcircuit
.. image:: https://landscape.io/github/comandrei/django-shortcircuit/master/landscape.svg?style=flat
:target: https://landscape.io/github/comandrei/django-shortcircuit/master
:alt: Code Health
Shortcircuit Django middlewares for a list of views you want skipped
Documentation
-------------
The full documentation is at https://django-shortcircuit.readthedocs.org.
Quickstart
----------
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')
Features
--------
* 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
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-pypackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.1.0 (2016-05-15)
++++++++++++++++++
* First release on PyPI
* Includes shortcircuiting middleware, bypassing process_view only
Metadata
Release files for django-shortcircuit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-shortcircuit-0.1.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_shortcircuit-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / django-shortcircuit-0.1.0.tar.gz
| Download URL | django-shortcircuit-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ebda1b1c16f3335cf082efc3d11861541cea816265a0dc9a3655af47c27c4c3
|
|
BLAKE2b-256 checksum How to use checksums |
6abccf5266d101799d1a36ab386d93c4780aa12eb4c303ccf20fcd84014a58b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_shortcircuit-0.1.0-py2.py3-none-any.whl
| Download URL | django_shortcircuit-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c4d750ba04263ddd0420e020f7464caf27f88177476846d0b5ba2949aa9dd74a
|
|
BLAKE2b-256 checksum How to use checksums |
ebe6252ea192b622fe7a8acdb83846caa2230712c908725aadd82c57c6a9fcca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |