How can i access the current user outside a request in django
There is no sane way to get the user outside of the request. If the current user matters then pass it to any functions that need it.
I'm working on a medium sized project in django and i want to be able to access the current user from within my query manager.  I need to be able to design a custom manager to limit the results and querysets so that the current user only get's information related to him/her.
I've received a few suggestions, I've also seen the not so supported example of using threadlocals from a django middleware. However, i'm very confused as this seems to be most promising solution now. I am looking for a better way to do this, so i can gain access to the current user from within a model manager.