title: Trouble with Django Logout Page, django-registration logout.html Template Form Fields
body: <p>I am using <code>django-registration</code>. After getting it working, I went on extending views and forms for field customization using Bootstrap.</p>
  
  <p>I have this working for everything except the logout page. In the default method, I simply built the form by scratch and it worked OK. But when trying to use Django's forms, it's not showing the fields at all. Both the login and logout templates use this basic form:</p>
  
  <pre><code>&lt;div class="auth-form"&gt;
      &lt;form class="form-signin" method="post" action="/accounts/login/"&gt;
          {% csrf_token %}
          &lt;h2 class="form-signin-heading"&gt;Please log in&lt;/h2&gt;
              &lt;div class="font-16px top-mar-1em"&gt;
                  &lt;label for="id_username"&gt;&lt;/label&gt;
                  {{ form.username }}
                  &lt;label for="id_password1"&gt;&lt;/label&gt;
                  {{ form.password }}
                  &lt;div class="form-group"&gt;
                      &lt;div class="col-sm-10"&gt;
                          &lt;div class="level-checkbox"&gt;
                              &lt;label for="checkbox"&gt;
                                  {{ form.remember_me }} Remember me
                              &lt;/label&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;button class="btn btn-primary" type="submit"&gt;Log in&lt;/button&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This works fine for the login page, but for the logout page it doesn't (the fields are  missing). It's like the form is not available to this page. I'm sure I missed something simple but I can't figure it out.</p>
  
  <p>My <code>urls.py</code> section look like this:</p>
  
  <pre><code>url(r'^accounts/login/$','django.contrib.auth.views.login', {
      'template_name': 'registration/login.html',
      'authentication_form': UserAuthenticationForm,
  }),
  </code></pre>
  
  <p>I've tried adding a logout section to <code>urls.py</code> similar to the login one, but that hasn't worked. I've tried using <code>logout_then_login</code>, using <code>login.html</code> as import template on <code>logout.html</code> and other miscellaneous things to no avail.</p>
  
  <p>Apparently, there is no form associated with the default logout view, so this is probably the issue but I'm not sure the best way to implement a standard form in the logout view.</p>