On Mon, Mar 9, 2009 at 12:03 PM, Rajesh D <rajesh.dha...@gmail.com> wrote:

>
>
>
> On Mar 9, 12:48 pm, 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.
>
>
> http://docs.djangoproject.com/en/dev/topics/auth/#authentication-in-web-requests
>
> -Rajesh D
>
> >
>
The important thing to remember is that you never have access to some global
user object, you need to pass it to wherever needs it.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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