Skip to content

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

License

Notifications You must be signed in to change notification settings

kindlycat/django-request-vars

Repository files navigation

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.

Requirements

Django: >= 1.11 Python: 2.7, >=3.4

Installation

Install using pip:

$ pip install django-request-vars

Add to installed apps if you need template tags:

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

Add middleware:

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published