On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote:
> On Tue, Jul 17, 2012 at 11:59 AM, @@ <ask...@gmail.com> wrote:
> >  u = User.objects.all()
> > u is not a user.
> >
> Oh yes, thank you for pointing.
> Please help me with this :
> How can I get the user id or 'u' of the user who has login using
> Django inbuilt authentication, so that I can give different views to
> the users based on there permissions ?
> Thanks in advance. 

request.user
-- 
regards
Kenneth Gonsalves

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