title: Django 1.9.1 NoReverseMatch when using django.auth
body: <p>I'm trying to learn django by following the book "Django by Example" and probably due to conflicting versions i'm running into this problem when trying to use django.auth together with some URL settings in 
  settings.py.
  Im getting totally frustrated by now since i have no idea how to even begin debugging this error. Any help or advice would be much appreciated
  Here's the relevant part of the settings.py file</p>
  
  <pre><code>from django.core.urlresolvers import reverse_lazy
  LOGIN_REDIRECT_URL = reverse_lazy('dashboard')
  LOGIN_URL = reverse_lazy('login')
  LOGOUT_URL = reverse_lazy('logout')
  </code></pre>
  
  <p>app views.py:</p>
  
  <pre><code>from django.shortcuts import render, redirect
  from django.shortcuts import HttpResponse
  from django.contrib.auth import authenticate, login, logout
  from .forms import LoginForm
  from django.contrib.auth.decorators import login_required
  # Create your views here.
  @login_required
  def dashboard(request):
      return render(request, 'account/dashboard.html', {'section': 'dashboard'})
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>from django.conf.urls import url
  from . import views
  
  app_name = 'account'
  urlpatterns = {
      url(r'^$', views.dashboard, name='dashboard'),
      url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
      url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'),
      url(r'^logout-then-login/$', 'django.contrib.auth.views.logout_then_login', name='logout_then_login'),
  }
  </code></pre>
  
  <p>Main urls.py :</p>
  
  <pre><code>from django.conf.urls import url, include
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^account/', include('account.urls')),
  
  ]
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/dvB5F.png" rel="nofollow">Error Message</a></p>
  
  <p>updated settings.py :</p>
  
  <pre><code>LOGIN_REDIRECT_URL = reverse_lazy('account:dashboard')
  LOGIN_URL = reverse_lazy('account:login')
  LOGOUT_URL = reverse_lazy('account:logout')
  </code></pre>