from django.conf.urls import url from . import views app_name = "polls" urlpatterns = [ url("^$", views.index, name="index"), url("^(?P[0-9]+)/$", views.detail, name="detail"), url("^(?P[0-9]+)/results/$", views.results, name="results"), url("^(?P[0-9]+)/vote/$", views.vote, name="vote"), ]