Re: login page not working

2019-07-03 Thread Aldian Fazrihady
Your code shows you that it redirects on invalid login instead of immediately rendering the same form plus error message. On Wed, 3 Jul 2019, 23:04 KUMBHAGIRI SIVAKRISHNA, wrote: > Even I was entered wrong username and wrong password ,but it directs to > same login with empty spaces. > > On We

Re: login page not working

2019-07-03 Thread KUMBHAGIRI SIVAKRISHNA
Even I was entered wrong username and wrong password ,but it directs to same login with empty spaces. On Wed, 3 Jul 2019, 8:09 pm Aldian Fazrihady, wrote: > Redirection should only be done on successful login. > Invalid login should directly render the form plus error message. > > Regards, > >

Re: login page not working

2019-07-03 Thread Aldian Fazrihady
Redirection should only be done on successful login. Invalid login should directly render the form plus error message. Regards, Aldian Fazrihady On Wed, 3 Jul 2019, 18:03 KUMBHAGIRI SIVAKRISHNA, wrote: > I entered username and password ,and click submit ,then it directs same > login page with

Re: login page not working

2019-07-03 Thread Joe Reitman
Try debugging your view with a print statement. Print the username and password to see if those values are getting passed in. On Wednesday, July 3, 2019 at 6:02:52 AM UTC-5, KUMBHAGIRI SIVAKRISHNA wrote: > > I entered username and password ,and click submit ,then it directs same > login page wi

login page not working

2019-07-03 Thread KUMBHAGIRI SIVAKRISHNA
I entered username and password ,and click submit ,then it directs same login page with empty username and password columns, logic is correct in views.py Please help me ,give any suggestions to solve this issue views.py: == from django.shortcuts import render ,redirect from django.contrib