access django request object whenever you need it
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-request-provider-1.0.0.tar.gz
.
File metadata
- Download URL: django-request-provider-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 714e9f4f5b76d7aa6e8f6020eccd723f4f48593d41a2a42ce1167871e6eb0bb4 |
|
MD5 | 3a7516d6d1e668afde8fd59c92c67d66 |
|
BLAKE2b-256 | c514cdc99074e0fa438af3b3202c03840b45262a751f34b610f3bed508da3b13 |
File details
Details for the file django_request_provider-1.0.0-py2.7.egg
.
File metadata
- Download URL: django_request_provider-1.0.0-py2.7.egg
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6fcabd3033aaea4237c351d809cb099e066c5e04452c991dccebad3b78803a0 |
|
MD5 | e6f3c06dcf48c1e4a4797b2d216381ee |
|
BLAKE2b-256 | 22ded3e2dd39f6c8f816f15fbc087df4bc9d864a864b4521cf2019e7601fc816 |