Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Stores the current request in Thread Local Storage using Werkzeug
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tls
.gitignore
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

django-tls

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.

Something went wrong with that request. Please try again.