Django middleware to capture current request and user.
Project description
Django-CRUM
Django-CRUM (Current Request User Middleware) captures the current request and user in thread local storage.
It enables apps to check permissions, capture audit trails or otherwise access the current request and user without requiring the request object to be passed directly. It also offers a context manager to allow for temporarily impersonating another user.
It provides a signal to extend the built-in function for getting the current user, which could be helpful when using custom authentication methods or user models.
Documentation can be found at RTFD.
- It is tested against:
Django 1.11 (Python 3.5 and 3.6)
Django 2.0 (Python 3.5, 3.6 and 3.7)
Django 2.1 (Python 3.5, 3.6 and 3.7)
Django 2.2 (Python 3.5, 3.6, 3.7, 3.8 and 3.9)
Django 3.0 (Python 3.6, 3.7, 3.8 and 3.9)
Django 3.1 (Python 3.6, 3.7, 3.8 and 3.9)
Django master/3.2 (Python 3.6, 3.7, 3.8 and 3.9)
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
Built Distribution
Hashes for django_crum-0.7.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 037cc8b822975bb1d41cd24269b59a512cc77448fadc3f34ab9a17b229b4b471 |
|
MD5 | 365784792117f1150dcfd4644587945e |
|
BLAKE2b-256 | cdf98fad70a3bd011a6be7c5c6067278f006a25341eb39d901fbda307e26804c |