Skip to main content

Stores the current request in Thread Local Storage using Werkzeug

Project description

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

Installation:

pip install git+https://github.com/rvanlaar/django-tls

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.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-tls-rvanlaar, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size django_tls_rvanlaar-0.0.3-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-tls-rvanlaar-0.0.3.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page