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.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-request-provider-1.0.1.tar.gz
Algorithm Hash digest
SHA256 80c0e27096d3b059daf83f00a5db04b927f1ab924c9357060803feec30872c27
MD5 ae9198222e404fc42cab01376b6aa24c
BLAKE2b-256 513097cbd637c484b568248eb1c4b3186781d0d252d527bde7c3afcd54d95d76

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