Global request objects for Django
Project description
Django Global Requests
Allows for global request objects in your django project
Installation
pip install django-guardian
Configuration
- Add to installed apps:
INSTALLED_APPS = [
...
'global_requests',
]
- Add middleware:
MIDDLEWARE = [
...
'global_requests.GlobalRequestMiddleware',
]
Usage
import get_request from global_requests
request = get_request()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-global-requests-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7be16c92386bf1b61d3d56a71a810566d72ec9bb7cba24e1fe79fb3141357398 |
|
MD5 | 91ac3d166c0b87ebb316048442f2ee59 |
|
BLAKE2b-256 | beed7d0796f695930ffccf954745874e6abb5fd59151a35893c58741bdd9ac7e |
Close
Hashes for django_global_requests-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b4e24a282462df44eb5dc9f875e07724c075fc5bbdd397cac642cb752f60424 |
|
MD5 | 745458343ff1a9e39840c7e28e639076 |
|
BLAKE2b-256 | 333876beb40292c466322c6a4a5bccebfc9d213d7dfb64b0540e8ce68b2ebd4a |