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, password=password)

>         <input type="text" class="form-control" id="username"

>         <input type="password" class="form-control" id="password"
> placeholder="Password">

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6153210.3ZSgJhhTe8%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to