On Monday, 20 January 2014 05:35:40 UTC, Chen Xu wrote: > > Hi Everyone, > I am wondering how request.User get set during the authentication, do we > have to do anything like: > > request.User = User(....) or it will have value by itself? > > > Thanks in advance. > -- > ⚡ Chen Xu ⚡ >
Did you try reading the documentation, which explains all this fully? request.user (note lower case) is populated by the authentication middleware. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/388e8a07-a271-4c4d-89c3-972968276d5b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.