title: Redirecting the django built-in logout view after successfull logout
body: <p>I am using django to build a login and logout page , below are my codes</p>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>from django.conf.urls.defaults import *
  from django.conf import settings
  from django.core.urlresolvers import reverse
  
  urlpatterns = patterns('',
               url(r'^$', 'learn_django.views.home_page'),          
               url(r'^login/$', 'learn_django.views.login'),
               url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}),
  )
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>from django.shortcuts import render_to_response
  from django.template import RequestContext
  from django.contrib.auth import authenticate, login as main_login, logout as main_logout
  
  def home_page(request):
      return render_to_response("home_page.html")
  
  def login(request):
      .....
      .....
      return render_to_response("login.html")
  </code></pre>
  
  <p><strong>logout.html</strong></p>
  
  <pre><code>{% extends 'base.html' %}
  {% block title %}Logout Page{% endblock %}
  {% block body %}
    &lt;div&gt;
      &lt;p style='color:#092E20;font-size:25px;font-weight:bold;padding-top:20px;padding-left:15px;'&gt;
           You have been successfully logged out......
      &lt;/p&gt;
      &lt;p&gt;Redirecting to login page.....&lt;/p&gt; 
    &lt;/div&gt;      
  {% endblock %}
  </code></pre>
  
  <p>So in the above codes, i will have a login url which will display a login form and redirects to another url after successfull login  which is working fine</p>
  
  <p>Also i will have a logout url for which i am using the django <code>built-in logout view</code> , by supplying it a template <code>logout.html</code> which is also working fine and displaying the above html code successfully when i clicked the logout url</p>
  
  <p>So now i want to redirect to the login page after displaying the logout page(after some time period....). I mean first the logout view should render the <code>logout.html</code> code and next should redirect to login page ....</p>
  
  <p>Can anyone please let me know how to redirect to login html page after rendering logout.html as above ......</p>