sandbox/django/mysite/polls/urls.py

12 lines
323 B
Python
Raw 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.index, name='index'),
2018-05-07 03:21:35 +00:00
path('<int:question_id>/', views.detail, name='detail'),
path('<int:question_id>/results/', views.results, name='results'),
path('<int:question_id>/vote/', views.vote, name='vote'),
2018-05-06 23:47:59 +00:00
]