from django.urls import re_path from . import views urlpatterns = [ re_path(r'^index/$', views.IndexView.as_view(), name='index') ]