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
```
[![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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-tls-middleware-0.1.1.tar.gz
.
File metadata
- Download URL: django-tls-middleware-0.1.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bffc7d93e64387501b8d4a8ba627d32d7fdf66d07dcb7a8f94eeb4569d111fe |
|
MD5 | c3a870fe78038184d52f4b2a3e8469c1 |
|
BLAKE2b-256 | 741517a508a07a237c15bae2d51f89ef912ff7bd2d20e640220810acd238580f |