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//', views.polls_edit, name='edit'), path('delete//', views.polls_delete, name='delete_poll'), path('end//', views.end_poll, name='end_poll'), path('edit//choice/add/', views.add_choice, name='add_choice'), path('edit/choice//', views.choice_edit, name='choice_edit'), path('delete/choice//', views.choice_delete, name='choice_delete'), path('/', views.poll_detail, name='detail'), path('/vote/', views.poll_vote, name='vote'), ]