No description
This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
2012-11-30 10:57:26 -05:00
request_provider Return 'None' when you do not have a signal_response 2012-11-30 10:57:26 -05:00
.gitignore Ignore build files 2012-06-21 10:53:21 -03:00
README.md Se agrego una pseuda documentación 2012-06-19 15:45:10 -03:00
setup.py Added zip_safe flag 2012-06-27 09:35:35 -03:00

django-request-provider

A middle to get the request from anywhere.

It is inspired on the: django-contrib-requestprovider-1.0.1

Usage

Add the following middleware to setings.py:

MIDDLEWARE_CLASSES=( 
    ...
    'request_provider.middleware.RequestProvider',
    ...
    )

And when you require the request, just do:

from request_provider.signals import get_request 
http_request = get_request()