Skip to main content

TLS Middleware

Project description

# 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
```

Project details


Download files

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

Source Distribution

django-tls-middleware-0.1.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file django-tls-middleware-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-tls-middleware-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6bffc7d93e64387501b8d4a8ba627d32d7fdf66d07dcb7a8f94eeb4569d111fe
MD5 c3a870fe78038184d52f4b2a3e8469c1
BLAKE2b-256 741517a508a07a237c15bae2d51f89ef912ff7bd2d20e640220810acd238580f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page