django-tutorial/mysite/polls/urls.py

12 lines
354 B
Python
Raw Normal View History

2020-07-01 19:31:58 -07:00
from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
2020-07-07 05:14:26 -07:00
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultsView.as_view(), name='result'),
2020-07-01 19:31:58 -07:00
path('<int:question_id>/vote/', views.vote, name='vote')
]