title: Django error in request/response middleware- TypeError: __init__() takes 1 positional argument but 2 were given
body: <p>I'm still pretty new to Django and cant seem to get anywhere with this error (I've read through similar posts here with no luck). Code in urls.py is pasted below:</p>
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  # Add this import
  from django.contrib.auth import views
  from log.forms import LoginForm
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^', include(('dashboard.urls', "dashboard"), namespace='dashboard')),
      url(r'^login/$', views.LoginView, {'template_name': 'login.html', 'authentication_form': LoginForm}, name='login'),
      url(r'^logout/$', views.LogoutView, {'next_page': '/'}),
  ]
  </code></pre>
  
  <p>Full trace is below:</p>
  
  <pre><code>Internal Server Error: /login/
  Traceback (most recent call last):
    File "C:\Python36-32\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
      response = get_response(request)
    File "C:\Python36-32\lib\site-packages\django\core\handlers\base.py", line 127, in _get_response
      response = self.process_exception_by_middleware(e, request)
    File "C:\Python36-32\lib\site-packages\django\core\handlers\base.py", line 125, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
  TypeError: __init__() takes 1 positional argument but 2 were given
  [21/Aug/2018 00:20:27] "GET /login/?next=/ HTTP/1.1" 500 64213
  </code></pre>
  
  <p>Any ideas on how to solve this? Or what could be causing this error?</p>