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