title: NoReverseMatch while rendering the Django admin screen?
body: <p>Running Python 2.5 Django 1.2.4</p>
  <p>Error message while testing basic setup. First time I enter the /admin URL in my browser, I get error message:</p>
  <blockquote>
  <p>In template c:\dd\ddproject\src\templates\admin\base_site.html, error at line 10</p>
  <p>Caught NoReverseMatch while rendering: Reverse for 'django.contrib.auth.views.logout' with arguments '()' and keyword arguments '{}' not found.</p>
  <p>Exception Location:    C:\Python25\lib\site-packages\django\template\defaulttags.py in render, line 385</p>
  </blockquote>
  <p>Here's the code at line 10</p>
  <pre><code>&lt;a href=&quot;{% url django.contrib.auth.views.logout %}&quot;&gt;{% trans 'Log out' %}&lt;/a&gt; 
  </code></pre>
  <p>I'm reluctant to include my entire <code>settings.py</code> file. But to answer your next questions, here's the relevant settings:</p>
  <pre><code>MIDDLEWARE_CLASSES = (
      'django.middleware.common.CommonMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
   )
  
   ROOT_URLCONF = 'src.urls'
  
   TEMPLATE_DIRS = (
       &quot;/dd/ddproject/src/templates&quot;,
   )
  
   INSTALLED_APPS = (
       'django.contrib.auth',
       'django.contrib.contenttypes',
       'django.contrib.sessions',
       'django.contrib.sites',
       'django.contrib.messages',
       'django.contrib.admin',
       'django.contrib.admindocs',
   )
  </code></pre>