1st commit
This commit is contained in:
19
polls/urls.py
Normal file
19
polls/urls.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = "polls"
|
||||
|
||||
urlpatterns = [
|
||||
path('list/', views.polls_list, name='list'),
|
||||
path('list/user/', views.list_by_user, name='list_by_user'),
|
||||
path('add/', views.polls_add, name='add'),
|
||||
path('edit/<int:poll_id>/', views.polls_edit, name='edit'),
|
||||
path('delete/<int:poll_id>/', views.polls_delete, name='delete_poll'),
|
||||
path('end/<int:poll_id>/', views.end_poll, name='end_poll'),
|
||||
path('edit/<int:poll_id>/choice/add/', views.add_choice, name='add_choice'),
|
||||
path('edit/choice/<int:choice_id>/', views.choice_edit, name='choice_edit'),
|
||||
path('delete/choice/<int:choice_id>/',
|
||||
views.choice_delete, name='choice_delete'),
|
||||
path('<int:poll_id>/', views.poll_detail, name='detail'),
|
||||
path('<int:poll_id>/vote/', views.poll_vote, name='vote'),
|
||||
]
|
||||
Reference in New Issue
Block a user