Re: authenticate function is always returning none in views.py

2017-02-21 Thread Melvyn Sopacua
Your inputs don't have a "name" attribute, so I suspect your username and password are always empty. On Monday 20 February 2017 22:11:56 rocky101 wrote: > username=request.POST.get('username','') > password=request.POST.get('password','') > user = auth.authenticate(username=username,

authenticate function is always returning none in views.py

2017-02-21 Thread rocky101
I'm trying to sign in with an account that already exists in the system, i checked the admin django page of my project to make sure it was there, but everytime i enter the username and password it always redirects me to the invalid webpage when I know the username and password is the exact same