Global request objects for Django
Project description
Django Global Requests
Allows for global request objects in your django project
Installation
pip install django-global-requests
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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56b677b7251195173edae0fab7da77428dfffa17e0b231daebd63316cbc9888 |
|
MD5 | 0b883a91c2da680a4d3f4a1a5c685243 |
|
BLAKE2b-256 | b9da1f62393ce21bbca3657085f1f8a7beadaa3feed66596147db99c24194536 |
Close
Hashes for django_global_requests-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abbb2889f7142c2c8935af5be5d08b0a84894358854440e584f952b215eb3286 |
|
MD5 | caffe905ea537500e61aaf567ab3917c |
|
BLAKE2b-256 | 742c4901f35b5257863894f1a1c7544594e79b1800cfbee874ffbc453d12fe37 |