title: Problems with Django logout
body: <p>I was following a tutorial, but the logout is not working, I have something like this. (Python 3.7)</p>
  
  <pre><code>from django.contrib.auth import views as auth_views
  
  urlpatterns = [
  # Auth
  url(r'^logout/', auth_views.logout, name='logout'),
  ]
  </code></pre>
  
  <p>I get this error (doesn't run):</p>
  
  <pre><code>AttributeError: module 'django.contrib.auth.views' has no attribute 'logout'
  </code></pre>
  
  <p>I also checked that there is a function called <code>auth_logout()</code> on that same path, but it needs a <code>request</code> to work, and I have no idea how to do that. It runs without the parameter and when I call the url it does logout, but I get an exception:</p>
  
  <pre><code>The view django.contrib.auth.logout didn't return an HttpResponse object. It returned None instead.
  </code></pre>
  
  <p>Any help is welcome. Thanks.</p>