Skip to main content

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

  1. Add middleware:
    MIDDLEWARE = [
        ...
        'global_requests.GlobalRequestMiddleware',
    ]
    
    

Usage

from global_requests import get_request
request = get_request()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-global-requests-1.0.17.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

django_global_requests-1.0.17-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file django-global-requests-1.0.17.tar.gz.

File metadata

  • Download URL: django-global-requests-1.0.17.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0

File hashes

Hashes for django-global-requests-1.0.17.tar.gz
Algorithm Hash digest
SHA256 db6b2cc24d19446f13b9117d17bf2bc7b9edc5f0930c70df5d1527e2503a18b2
MD5 0aec86a3ef88101f706e21a89735167d
BLAKE2b-256 8dd43ea0e64cd1c07966ddd0b075fb3b4c028ada15648d755c9bf52afdcb08e1

See more details on using hashes here.

File details

Details for the file django_global_requests-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: django_global_requests-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0

File hashes

Hashes for django_global_requests-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 13a2f76b87022892190319bac20a307075418c3dbd7a7026f372c9e4d472766f
MD5 a8e82ac526587c527f472ef25ae60181
BLAKE2b-256 40ea094c1e05dcaa7ef43e6f859b6f6a15f9b5f15211d647dd6003195cd3ad31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page