from django.urls import path from . import views app_name = "polls" urlpatterns = [ # ex: /polls/ path("", views.index, name="index"), # ex: /polls/{id}/ path("/", views.detail, name="detail"), # ex: /polls/{id}/results/ path("/results/", views.results, name="results"), # ex: /polls/{id}/vote/ path("/vote/", views.vote, name="vote"), ]