sandbox/django/mysite/polls/urls.py

12 lines
347 B
Python
Raw Permalink Normal View History

2018-05-06 23:47:59 +00:00
from django.urls import path
from . import views
2018-05-07 03:21:35 +00:00
app_name = 'polls'
2018-05-06 23:47:59 +00:00
urlpatterns = [
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='results'),
2018-05-07 03:21:35 +00:00
path('<int:question_id>/vote/', views.vote, name='vote'),
2018-05-06 23:47:59 +00:00
]