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 <[email protected]> wrote: > decorator? > > > 2011/8/27 NISA BALAKRISHNAN <[email protected]> > >> 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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

