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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808ef86902f24d183f6e4939878089143e25850b083d468fb57e009c38fbc57f |
|
MD5 | 1bc1ab2f5a9bb8ccd320a563318b5dee |
|
BLAKE2b-256 | 120bb8433558b7cc4c465212d87c7f1dcffff3dd97f510652a29bf54071a1d5f |
Close
Hashes for django_global_requests-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd33058f536dbd2e8319135b4499e9e1e69629818735ba3bf6a8b9390a930f1 |
|
MD5 | c315f31213b72f0762e88d542750e247 |
|
BLAKE2b-256 | d8b97d82ea965c0b80b2ff922d53b97357caa0dcdf193d14983e9e12a9beb0f6 |