Skip to content

scratchfoundation/django-request-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-request-provider

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages