Skip to main content

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()

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-request-provider-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ec400f19b8faa979daea249866c0c207155566c9ee1cf5c80ab6bac49f9dff04
MD5 eff54ab735a0c3a014a3e16ea5bb345a
BLAKE2b-256 929040fbbe0aed548fb5268130bbd321e624bd01626f3f04a0776e98dea20a33

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 file

1.0.1

1 file

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page