On Wed, 2009-10-14 at 02:29 -0700, luca72 wrote:
> Hello if i use request.META['REMOTE_USER'] i get key error, but if i
> use 'REMOTE_HOST' not
> can you tell me how to get the user that is authenticate
> I use the decorator @login_required and so the user is authenticated
> correct?
> 
> Regards
> 
> Luca

Simply look at request.user. See [1].

Cheers

Tom

[1]
http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.user



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