Django Form request.POST.get() always returns empty
<p>Sorry if this is a noob question. I'm creating a login form for a Django app, but I'm having trouble getting it to work. request.POST.get() doesn't return anything, so the authentication always fails. Am I missing something obvious?</p>

<p>login.html:</p>

<pre><code>{% extends "base.html" %}

{% block content%}

&lt;h2&gt;Welcome! Please login to continue.&lt;/h2&gt; &lt;br&gt;
&lt;form action="{% url 'account:authenticate' %}" method="post"&gt;
    {% csrf_token %}
    &lt;div &gt;
        &lt;label for='username'&gt; Username: &lt;/label&gt;
        &lt;input type='text' name='Username' id='username'&gt; &lt;br&gt;&lt;br&gt;
        &lt;label for='password'&gt;Password:  &lt;/label&gt;
        &lt;input type='password' name='Password' id='password'&gt;&lt;br&gt;&lt;br&gt;
        &lt;input type='submit' value='Login'&gt;
    &lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>relevant part of views.py:</p>

<pre><code>from django.shortcuts import render, get_object_or_404
from datetime import datetime   
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.template import loader
from random import randrange
from django.contrib.auth import authenticate

def login(request):
    return render (request, 'login.html')

def authenticate(request):
    usern = request.POST.get('username', '')
    passw = request.POST.get('password', '')
    user = authenticate(username = usern, password = passw)      
    if user is not None:
        authenticate.login(request, user)
        return HttpResponseRedirect('/voters/instructions')
    else:
        return HttpResponseRedirect('/account/loginfail')

def loginfail(request):
    return render (request, 'loginfail.html')
</code></pre>

<p>I'm using Django 1.10. Thanks!</p>

<p>Check out the names in the form input fields they are case sensitive. in Django do this</p>

<pre><code> usern = request.POST.get('Username', '')
 passw = request.POST.get('Password', '')
</code></pre>

<p>or in html form make them lowercase the input name field</p>

python django