Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for django-request-vars, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_request_vars-1.0.1-py2.py3-none-any.whl (4.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-request-vars-1.0.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

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