2020-03-14 14:52:39 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
app_name = "polls"
|
|
|
|
urlpatterns = [
|
2020-06-04 13:48:40 +00:00
|
|
|
url("^$", views.IndexView.as_view(), name="index"),
|
|
|
|
url("^(?P<pk>[0-9]+)/$", views.DetailView.as_view(), name="detail"),
|
|
|
|
url("^(?P<pk>[0-9]+)/results/$", views.ResultsView.as_view(), name="results",),
|
2020-03-14 14:52:39 +00:00
|
|
|
url("^(?P<question_id>[0-9]+)/vote/$", views.vote, name="vote"),
|
|
|
|
]
|