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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34840926231a9c9783d5ba5d91d481ba78ad2de57afa1a2b6c0fffaec317a01d |
|
MD5 | f0c8c3c78b8167bd2541357eaf80f252 |
|
BLAKE2b-256 | b0e31e5a5e75fcc501bad897c5a0eca2e1e74399dc2b061e6dc4e791a216e6ad |
Close
Hashes for django_global_requests-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba958ec685dd4aa1ac6c1f9189aaa4befda5f4dc8965ebbc3cab2b1defcaae0b |
|
MD5 | 9b9d3175c6cf6ca6c8f6747ccc18a8db |
|
BLAKE2b-256 | 1479eb8f3909688e9dcccd48136ce30ba59ab3befbc4e82c9a23a4d692e0cd46 |