title: NoReverseMatch at /login/
body: <p>NoReverseMatch at /login/ is the error I'm getting from the console, I have a feeling this is something to do with the linking that is going on between urls.py but I can't figure out which part of it is wrong. Any help would be greatly appreciated on this. </p>
  
  <p>The full error from the console is beneath</p>
  
  <pre><code>Reverse for 'django.contrib.auth.views.login' not found. 
  'django.contrib.auth.views.login' is not a valid view function or pattern name.
  </code></pre>
  
  <h2>urls.py</h2>
  
  <pre><code>from django.contrib import admin
  from polls import views as polls_views
  from django.conf.urls import url, include
  from django.contrib.auth import views as auth_views
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^calendar/', include('calendarium.urls')),
      url(r'^polls/', include('polls.urls')),
      url(r'^$', polls_views.home, name='home'),
      url(r'^login/$', auth_views.login, {'template_name': 'login.html'}, name='login'),
      url(r'^logout/$', auth_views.logout, {'next_page': 'login'}, name='logout'),
      url(r'^signup/$', polls_views.signup, name='signup'),
  ]
  </code></pre>
  
  <h2>base.html</h2>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;{% block title %}OnNote{% endblock %}&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;header&gt;
        &lt;h1&gt;My Site&lt;/h1&gt;
        {% if user.is_authenticated %}
          &lt;a href="{% url 'logout' %}"&gt;logout&lt;/a&gt;
        {% else %}
          &lt;a href="{% url 'login' %}"&gt;login&lt;/a&gt; / &lt;a href="{% url 'signup' %}"&gt;signup&lt;/a&gt;
        {% endif %}
        &lt;hr&gt;
      &lt;/header&gt;
      &lt;main&gt;
        {% block content %}
        {% endblock %}
      &lt;/main&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <h2>login.html</h2>
  
  <pre><code>{% extends 'base.html' %}
  
  {% block title %}Login{% endblock %}
  
  {% block content %}
      &lt;div id="content-container" class="container p-none"&gt;
          &lt;div class="lgn-container col-lg-8"&gt;
              &lt;form id="login-form" method="post" 
                    action="{% url 'django.contrib.auth.views.login' %}"&gt;
                  {% csrf_token %}
                  &lt;table class="table"&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;label for="id_username"&gt;Username&lt;/label&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;input id="id_username" name="username" 
                                     type="text" class="form-control"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;label for="id_password"&gt;Password&lt;/label&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;input id="id_password" name="password" 
                                     type="password" class="form-control"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
                  {% if form.errors %}
                      &lt;p class=" label label-danger"&gt;
                          Your username and password didn't match. 
                          Please try again.
                      &lt;/p&gt;
                  {% endif %}
  
                  &lt;input type="submit" value="Login" 
                         class="btn btn-primary pull-right" /&gt;
                  &lt;input type="hidden" name="next" value="{{ next }}" /&gt;
              &lt;/form&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  {% endblock content %}
  </code></pre>
  
  <p>Can anyone point out what I'm doing wrong here? I think it's something to do with my urls.py but I can't figure out what, any help would be greatly appreciated </p>