django-tls 0.0.2
Stores the current request in Thread Local Storage using Werkzeug
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.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-tls-0.0.2.tar.gz (md5) | Source | 2011-05-02 | 2KB | 361 | |
- Author: Mikko Hellsing
- Home Page: https://github.com/aino/django-tls
- License: BSD
- Categories
- Package Index Owner: aino
- DOAP record: django-tls-0.0.2.xml
