box-o-sand/djtut/mysite/polls/urls.py

12 lines
349 B
Python
Raw Normal View History

2020-03-14 14:52:39 +00:00
from django.conf.urls import url
from . import views
app_name = "polls"
urlpatterns = [
url("^$", views.index, name="index"),
url("^(?P<question_id>[0-9]+)/$", views.detail, name="detail"),
url("^(?P<question_id>[0-9]+)/results/$", views.results, name="results"),
url("^(?P<question_id>[0-9]+)/vote/$", views.vote, name="vote"),
]