title: Django logout() returns none
body: <p>Morning everyone</p>
  
  <p>Im using django logout() to end my sessions just like django docs says :</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>class Logout(View):
      def logout_view(request):
          logout(request) 
          return HttpResponseRedirect(reverse('cost_control_app:login'))
  </code></pre>
  
  <p>and im calling it from this url :</p>
  
  <p>urls.py</p>
  
  <pre><code>url(r'^logout/$', views.Logout.as_view(), name = "logout"),
  </code></pre>
  
  <p>Buttttttt it's not working, when i do a trace i find that the function :</p>
  
  <pre><code> def logout_view(request):
  </code></pre>
  
  <p>it's returning "none" and it's nos entering to execute the code inside...</p>
  
  <p>Please help me !</p>