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


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-rvanlaar-0.0.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

django_tls_rvanlaar-0.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file django-tls-rvanlaar-0.0.3.tar.gz.

File metadata

  • Download URL: django-tls-rvanlaar-0.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.4

File hashes

Hashes for django-tls-rvanlaar-0.0.3.tar.gz
Algorithm Hash digest
SHA256 55659a6130d956e2bed454177809b2f00dfce3e207610259ae306f36f206fdc0
MD5 25103065c29ad360987bdd6a6e316b75
BLAKE2b-256 91fd26ef76b498dd87cb8cf03bc56b91d64a15bce0eac74ffb8e47b2d8d2a332

See more details on using hashes here.

File details

Details for the file django_tls_rvanlaar-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: django_tls_rvanlaar-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.4

File hashes

Hashes for django_tls_rvanlaar-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b02bb69498a91b93798fb49d7574357f95381a29e7b6390517500dad538f0d54
MD5 1457563df06381fb359de46e6d95bc55
BLAKE2b-256 baeedd69a1539defbab8245b7c622f30249b1cd181b5a27a143bb21255ba39d4

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