from django.conf.urls import url

from django_lti_tool_provider import views as lti_views

urlpatterns = [
    url(r'', lti_views.LTIView.as_view(), name='home'),
    url('^accounts/login/$', 'django.contrib.auth.views.login'),
    url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
]
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')
]

Replace string "view" argument to url() function with callable.
Replace string "view" argument to url() function with callable.

Support for string "view" arguments to url() function no longer available starting with Django 1.10.

Cf. https://docs.djangoproject.com/en/2.1/releases/1.10/#features-removed-in-1-10
