<NME> urls.py
<BEF> from django.urls import path
from django.contrib import admin
from django.views.generic import TemplateView
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns('',
    url(r'^$', TemplateView.as_view(template_name='index.html')),
)



<MSG> fixed broken example project

<DFF> @@ -4,12 +4,12 @@ from django.views.generic import TemplateView
 from django.contrib import admin
 admin.autodiscover()
 
-urlpatterns = patterns('',
-    url(r'^admin/', include(admin.site.urls)),
-)
+urlpatterns = [
+    url(r'^admin/', admin.site.urls),
+]
 
-urlpatterns += patterns('',
+urlpatterns += [
     url(r'^$', TemplateView.as_view(template_name='index.html')),
-)
+]
 
 

fixed broken example project