title: django logout and redirection
body: <p>i am using django authentification to make a oneToone relation with the user table. I try to use decorator @login_required to the next page after the login. when i logout and click on the back button of firefox, i always go to the previous page even if @login_required is apply. but when i refresh it redirect me on the login page. Is it a cache problem? how can i solve it? I want to do it like how the administration works</p>
  
  <pre><code>def logout(request):
      from django.contrib.auth import logout
      from django.shortcuts import redirect
      logout(request)                    
      request.session.flush()
      return redirect('/')
  
  
  from django.contrib.auth.decorators import login_required
  @login_required(login_url='/')
  def administration(request):
      do something
      return something
  </code></pre>