django-request-vars

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


Keywords
django, thread, variable, request, user, cache, middleware
License
DSDP
Install
pip install django-request-vars==1.0.1

Documentation

Django request vars

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

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',
    ...
]