Sunday, August 28, 2011

Re: authentication in django

request.user.is_authenticated()  ???

and the do a HttpResponseRedirect to the url you like.

https://docs.djangoproject.com/en/1.3/ref/request-response/#django.http.HttpRequest.user
https://docs.djangoproject.com/en/1.3/ref/request-response/#django.http.HttpResponseRedirect


On Mon, Aug 29, 2011 at 11:49 AM, Jian Chang <changjian53@gmail.com> wrote:
decorator?


2011/8/27 NISA BALAKRISHNAN <snisa.balakrishnan@gmail.com>
Hi,

I am new to django.
i am making a django app for a logged in user to add movies he
watched.

how can i block a logged in user from accessing the log in form ?
the url .../accounts/login

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment