Stores the current request in Thread Local Storage using Werkzeug
pip install django-tls
# settings.py MIDDLEWARE_CLASSES = ( 'tls.TLSRequestMiddleware', ... )
from tls import request # do something dangerous and useful with current request object
Worried about security? then read this thread.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.