title: Why does it shows View.as_view() takes 1 positional argument but 2 were given
body: <p>I'm not really sure where did it go wrong. I'm just a beginner in Django and I'm trying to create a  simple to-do list.
  I want to directly call the logout if I click log out it'll go in the login.</p>
  <p>urls.py</p>
  <pre><code>
      from fileinput import nextfile
      from django.urls import path
      from .views import TaskList, TaskDetails, TaskCreate, TaskUpdate, DeleteView, CustomLoginView
      from django.contrib.auth.views import LogoutView
      urlpatterns  =[
          path('login/',CustomLoginView.as_view,name='login'),
          path('logout/', LogoutView.as_view(next_page='login'),name='logout'), 
          path('', TaskList.as_view(),name='task'),
          path('task/&lt;int:pk&gt;/', TaskDetails.as_view(),name='task'),
          path('task-create/', TaskCreate.as_view(),name='task-create'),
          path('task-update/&lt;int:pk&gt;/', TaskUpdate.as_view(),name='task-update'),
          path('task-delete/&lt;int:pk&gt;/', DeleteView.as_view(),name='task-delete'),
      ]   
      ```
      
      task_list.html
      {% if request.user.is_authenticated %}
          &lt;p&gt;{{request.user}}&lt;/p&gt; &lt;!--shows who is the current user with that task --&gt;
          &lt;a href=&quot;{% url 'logout' %}&quot;&gt;Log me out&lt;/a&gt;
      {% else %}
      &lt;a href=&quot;{% url 'login' %}&quot;&gt;Ready to Login&lt;/a&gt;
      {% endif %}
      &lt;hr&gt;
      &lt;h1&gt;My To Do List&lt;/h1&gt;
      &lt;a href=&quot;{% url 'task-create' %}&quot;&gt; Add Task&lt;/a&gt;
      
      &lt;table&gt;
          &lt;tr&gt;
              &lt;th&gt;Items&lt;/th&gt;
              &lt;th&gt;&lt;/th&gt;
          &lt;/tr&gt;
          {% for task in tasks %} 
          &lt;tr&gt;
              &lt;td&gt;{{task.title}}&lt;/td&gt; 
              &lt;td&gt;&lt;a href=&quot;{% url 'task' task.id %}&quot;&gt;View&lt;/a&gt;&lt;/td&gt; 
              &lt;td&gt;&lt;a href=&quot;{% url 'task-update' task.id %}&quot;&gt;Edit&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&quot;{% url 'task-delete' task.id %}&quot;&gt;Delete&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          {% empty %}
          &lt;h3&gt;No Items in List&lt;/h3&gt;
          {% endfor %}
      &lt;/table&gt;
  </code></pre>