Se agrego una pseuda documentación
This commit is contained in:
parent
279ad6e98e
commit
bc3ce175bb
1 changed files with 25 additions and 1 deletions
26
README.md
26
README.md
|
@ -1,4 +1,28 @@
|
|||
django-request-provider
|
||||
=======================
|
||||
|
||||
A middle to get the request from anywhere.
|
||||
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()
|
||||
|
||||
|
||||
|
|
Reference in a new issue