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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-request-provider-1.0.2.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Dec 29, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page