Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-request-provider-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

django_request_provider-1.0.0-py2.7.egg (4.5 kB view details)

Uploaded Source

File details

Details for the file django-request-provider-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django-request-provider-1.0.0.tar.gz
Algorithm Hash digest
SHA256 714e9f4f5b76d7aa6e8f6020eccd723f4f48593d41a2a42ce1167871e6eb0bb4
MD5 3a7516d6d1e668afde8fd59c92c67d66
BLAKE2b-256 c514cdc99074e0fa438af3b3202c03840b45262a751f34b610f3bed508da3b13

See more details on using hashes here.

File details

Details for the file django_request_provider-1.0.0-py2.7.egg.

File metadata

File hashes

Hashes for django_request_provider-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 b6fcabd3033aaea4237c351d809cb099e066c5e04452c991dccebad3b78803a0
MD5 e6f3c06dcf48c1e4a4797b2d216381ee
BLAKE2b-256 22ded3e2dd39f6c8f816f15fbc087df4bc9d864a864b4521cf2019e7601fc816

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page