from django.conf.urls import url from .views import index_view, new_view urlpatterns = [ url(r'^$', index_view), url(r'^new/$', new_view), ]