2020-07-13 15:12:39 +00:00
|
|
|
from django.urls import path
|
2020-07-15 14:36:19 +00:00
|
|
|
|
2020-07-13 15:12:39 +00:00
|
|
|
from . import views
|
2020-07-15 14:36:19 +00:00
|
|
|
|
2020-07-13 15:12:39 +00:00
|
|
|
app_name = 'polls'
|
|
|
|
urlpatterns = [
|
2020-07-15 14:36:19 +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'),
|
2020-07-13 15:12:39 +00:00
|
|
|
path('<int:question_id>/vote/', views.vote, name='vote'),
|
|
|
|
]
|