Skip to main content

Stores current request, user and your defined data in thread local variable.

Project description

https://travis-ci.org/kindlycat/django-request-vars.svg?branch=master https://coveralls.io/repos/github/kindlycat/django-request-vars/badge.svg?branch=master https://readthedocs.org/projects/django-request-vars/badge/?version=latest https://img.shields.io/pypi/v/django-request-vars.svg https://img.shields.io/pypi/pyversions/django-request-vars.svg https://img.shields.io/badge/django-%3E%3D1.11-green.svg https://img.shields.io/gitter/room/nwjs/nw.js.svg

Application that stores current request, user and your defined data in thread local variable.

Full documentation on read the docs.

Installation

Install using pip:

$ pip install django-request-vars

Add to installed apps:

INSTALLED_APPS = (
    ...
    'request_vars',
    ...
)

Add middleware:

MIDDLEWARE = [
    ...
    'request_vars.middleware.RequestVarsMiddleware',
    ...
]

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_request_vars-1.0.1-py2.py3-none-any.whl (4.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-request-vars-1.0.1.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page