Re: No access to the login page to the already logged-in user through url

2016-04-30 Thread rajat vijay
Hey, The default value is perfectly fine, I just wanted to say that there can be a default template that the logged-in user be redirected if he tries to access the login page. On Saturday, April 30, 2016 at 4:19:06 PM UTC+5:30, Shai Berger wrote: > > On Saturday 30 April 2016 13:05:38 rajat vija

Re: No access to the login page to the already logged-in user through url

2016-04-30 Thread Shai Berger
On Saturday 30 April 2016 13:05:38 rajat vijay wrote: > Yeah it accomplishes what I want but it's False by default and without > extending the login view it will always be False. > What I am suggesting is it that by default the user should be redirected to > another template(maybe a new one) when t

Re: No access to the login page to the already logged-in user through url

2016-04-30 Thread rajat vijay
Yeah it accomplishes what I want but it's False by default and without extending the login view it will always be False. What I am suggesting is it that by default the user should be redirected to another template(maybe a new one) when trying to access the login page. I suggesting it to be defaul

Re: No access to the login page to the already logged-in user through url

2016-04-29 Thread Tim Graham
Django 1.10 adds a "redirect_authenticated_user" parameter for the login view which, if I understand correctly, accomplishes what you want. https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.login On Friday, April 29, 2016 at 4:40:37 PM UTC-4, rajat vijay wrote:

No access to the login page to the already logged-in user through url

2016-04-29 Thread rajat vijay
Hey, Thank in advance I think that once the user has logged in he should not be able to access the template having the login form w/o getiing logged out. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. T