Skip to main content

Django middleware to capture current request and user.

Project description

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.

It is tested against:
  • Django 1.4.10 (Python 2.6 and 2.7)

  • Django 1.5.5 (Python 2.6, 2.7, 3.2 and 3.3)

  • Django 1.6.1 (Python 2.6, 2.7, 3.2 and 3.3)

  • Django master (Python 2.7, 3.2 and 3.3)

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-crum-0.6.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-crum-0.6.1.tar.gz.

File metadata

  • Download URL: django-crum-0.6.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-crum-0.6.1.tar.gz
Algorithm Hash digest
SHA256 3b811d6e8e3528c0ca1aacbc92075cb4ae7362bd89bf0976261be486710b3056
MD5 85a7abd0f35638dbace03afae5a2081c
BLAKE2b-256 24e4d5c19f166a19375fae5417378f05c29cf825a8408515b01bf7b70078d05c

See more details on using hashes here.

Supported by

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