<NME> urls.py
<BEF> from django.conf.urls import url
from django.contrib import admin
from django.views.generic import TemplateView

admin.autodiscover()

urlpatterns = [
    url(r"^admin/", admin.site.urls),
]

urlpatterns += [
    url(r"^$", TemplateView.as_view(template_name="index.html")),
]

<MSG> Upgrade code to Python 3.6+, Django 2.2 and remove deprecations

<DFF> @@ -1,13 +1,13 @@
-from django.conf.urls import url
+from django.urls import path
 from django.contrib import admin
 from django.views.generic import TemplateView
 
 admin.autodiscover()
 
 urlpatterns = [
-    url(r"^admin/", admin.site.urls),
+    path('admin/', admin.site.urls),
 ]
 
 urlpatterns += [
-    url(r"^$", TemplateView.as_view(template_name="index.html")),
+    path('', TemplateView.as_view(template_name="index.html")),
 ]

Upgrade code to Python 3.6+, Django 2.2 and remove deprecations