Skip to main content

Add the user object to Django threadlocals

Project description


Provides a simple middleware and API to get hold of the currently
logged-in user.


Simply add fez.djangothreadlocal.middleware.threadlocals.ThreadLocals
to your MIDDLEWARE_CLASSES in, for example:


You should then be able to get hold of the current logged-in
user (or anonymous user) as follows:

from fez.djangothreadlocal.middleware import threadlocals
user = threadlocals.get_current_user()

0.3 - Initial release

* Initial release

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fez.djangothreadlocal-0.3.tar.gz (2.7 kB view hashes)

Uploaded source

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