from django.conf.urls import include, url
from django.conf.urls.static import static
from django.views.generic import TemplateView
from django.contrib import admin
from django.conf import settings

import views

admin.autodiscover()

urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name='{{project_name}}/base.html')),
    url(r'^login/$', 'django.contrib.auth.views.login'),
    url(r'^logout/$', views.log_out, name='log_out'),
    url(r'^admin/', include(admin.site.urls)),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
@@ -203,16 +203,55 @@
 rt views
+%0Aimport django.contrib.auth.views.login
 %0A%0Aadmin.
@@ -385,17 +385,16 @@
 gin/$', 
-'
 django.c
@@ -416,17 +416,16 @@
 ws.login
-'
 ),%0A    u

Include django.contrib.auth.views.login in django 1.10 way