User with correct credentials not login in django

views.py I have created a login function and check with user type then I'm trying to redirect Home page according to user type but I'm not able to redirect on home page It's stay on login page

url.py sending request in dologin

login.html Here is my login html form

After login it should redirect to the Home page ,I got some solution and I tried that but it's not working for me After login I'm getting such type of url path but It does not redirect to the Home page

Back to Top