Django-globals, is a very simple application, that allow to define a thread specific global variables.
Also, it includes a middleware Global, which can be used, to access to the current request and user outside a view, when "request" variable is not defined.
django_globals using pip.
django_globals to the INSTALLED_APPS and
django_globals.middleware.Global to the MIDDLEWARE_CLASSES.
Now you can make
from django_globals import globals and access to
globals.user from anywhere.