from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'about$', views.about, name='about'), url(r'contact$', views.contact, name='contact'), url(r'send_message', views.send_message, name='send_message'), url(r'^(?P[0-9]+)/$', views.detail, name='detail'), ]