Skip to main content
# django-tls-middleware
[![Build Status](https://travis-ci.org/sekomy/django-tls-middleware.svg?branch=master)](https://travis-ci.org/sekomy/django-tls-middleware)

Stores the current request in [Thread Local Storage](https://en.wikipedia.org/wiki/Thread-local_storage).
### Installation
```bash
pip install django-tls-middleware
```

### Configuration
```python
# settings.py
MIDDLEWARE = [
...
'tls_middleware.TLSMiddleware',
]
```

### Usage
```python
from tls_middleware import get_request
request = get_request()
# do something useful with current request object
```

Release files for django-tls-middleware 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tls-middleware 0.1.1
File Size Uploaded
django-tls-middleware-0.1.1.tar.gz 1.6 kB Details

Release files / django-tls-middleware-0.1.1.tar.gz

Download URL django-tls-middleware-0.1.1.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6bffc7d93e64387501b8d4a8ba627d32d7fdf66d07dcb7a8f94eeb4569d111fe
BLAKE2b-256 checksum
How to use checksums
741517a508a07a237c15bae2d51f89ef912ff7bd2d20e640220810acd238580f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page