Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninemoreminutes/django-crum
Django CRUM (Current Request User Middleware) captures the current request and user in thread local storage.
https://github.com/ninemoreminutes/django-crum
django django-middleware
Last synced: 5 days ago
JSON representation
Django CRUM (Current Request User Middleware) captures the current request and user in thread local storage.
- Host: GitHub
- URL: https://github.com/ninemoreminutes/django-crum
- Owner: ninemoreminutes
- License: other
- Created: 2013-10-30T18:41:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T06:04:50.000Z (9 months ago)
- Last Synced: 2024-09-19T15:17:51.358Z (about 2 months ago)
- Topics: django, django-middleware
- Language: Python
- Homepage: http://django-crum.readthedocs.io/
- Size: 138 KB
- Stars: 94
- Watchers: 5
- Forks: 14
- Open Issues: 12
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
|Build Status| |PyPI Version| |PyPI License| |Python Versions| |Django Versions| |Read the Docs|
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 3.2 pre-release (Python 3.6, 3.7, 3.8 and 3.9)
* Django main/4.0 (Python 3.8 and 3.9).. |Build Status| image:: https://img.shields.io/github/workflow/status/ninemoreminutes/django-crum/test
:target: https://github.com/ninemoreminutes/django-crum/actions?query=workflow%3Atest
.. |PyPI Version| image:: https://img.shields.io/pypi/v/django-crum.svg
:target: https://pypi.python.org/pypi/django-crum/
.. |PyPI License| image:: https://img.shields.io/pypi/l/django-crum.svg
:target: https://pypi.python.org/pypi/django-crum/
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/django-crum.svg
:target: https://pypi.python.org/pypi/django-crum/
.. |Django Versions| image:: https://img.shields.io/pypi/djversions/django-crum.svg
:target: https://pypi.org/project/django-crum/
.. |Read the Docs| image:: https://img.shields.io/readthedocs/django-crum.svg
:target: http://django-crum.readthedocs.io/