Stores the current request in Thread Local Storage using Werkzeug.
Installation:
pip install django-tls
Configuration:
# settings.py MIDDLEWARE_CLASSES = ( 'tls.TLSRequestMiddleware', ... )
Usage:
from tls import request # do something dangerous and useful with current request object
Worried about security? then read this thread.