django-tls-rvanlaar

Stores the current request in Thread Local Storage using Werkzeug


License
BSD-3-Clause
Install
pip install django-tls-rvanlaar==0.0.3

Documentation

django-tls

This is a fork from: https://github.com/sorl/django-tls Stores the current request in Thread Local Storage using Werkzeug.

Installation:

pip install django-tls-rvanlaar

Configuration:

 # settings.py
 MIDDLEWARE = [
     'tls.TLSRequestMiddleware',
     ...
]

Usage:

from tls import request
# do something dangerous and useful with current request object

Worried about security? then read this thread.