old_contents: from django.conf.urls import url
  from django.contrib.auth.views import login
  
  from django_lti_tool_provider import views as lti_views
  
  
  urlpatterns = [
      url(r'', lti_views.LTIView.as_view(), name='home'),
      url('^accounts/login/$', login),
      url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
  ]
  
new_contents: from django.conf.urls import url
  from django.contrib.auth.views import LoginView
  
  from django_lti_tool_provider import views as lti_views
  
  
  urlpatterns = [
      url(r'', lti_views.LTIView.as_view(), name='home'),
      url('^accounts/login/$', LoginView.as_view()),
      url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
  ]
  
subject: Replace contrib.auth's "login" view with LoginView.