You can get the current user through the request object: request.user.
If that fails, you need to have if you have AuthenticationMiddleware
installed probably.

~Briel

On 9 Mar., 17:48, Adam Schmitz <awschm...@gmail.com> wrote:
> Hey All,
>
> I just setup my webapp to use the django user authentication and everything
> works smoothly so far. The one thing I'm wondering is: after the user logs
> in, how do you access the user object from another app?
>
> The main thing I'm trying to accomplish is I want to save a model with one
> of the fields being the current user that is logged in.
>
> --
> Adam
>
> "Say what you mean and mean what you say. Because those that matter don't
> mind and those that mind don't matter."
> -Dr. Suess
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to