1👍
String reference is not allowed since Django 1.10.
import django.contrib.auth.views
urlpatterns = [
...
url(r'^login/$', django.contrib.auth.views.login, name='login'),
...
Change your urls.py code as mention above and it might work.
Source:stackexchange.com