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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd685d439eaf197374c6585727d39a0644ffdaf629240b3ea2adc127faa3497c |
|
MD5 | 0373955ac5ddc5b16a5f8a770f32c75f |
|
BLAKE2b-256 | 18c7ae7e42960e43b6269d21fe11ca469da298bd7f1f8bc17e6ceac6768f1225 |
Close
Hashes for django_global_requests-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3d31a991700be23ea36470654d59c8b24add3900355d9bf7cfd839ffc5173e |
|
MD5 | aad9280517d76b5c73fc1827a150c1c6 |
|
BLAKE2b-256 | 825a0596b350187ee084e8b4d8e570534246a65380e256be6fe602c7cfdf95df |