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 = [
|
2018-05-07 05:09:29 +00: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='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
|
|
|
]
|