from django.urls import path from election.views import ( CandidatureCreateView, CandidatureDeleteView, CandidatureUpdateView, ElectionCreateView, ElectionDeleteView, ElectionDetailView, ElectionListArchivedView, ElectionListCreateView, ElectionListDeleteView, ElectionsListView, ElectionUpdateView, RoleCreateView, RoleDeleteView, RoleUpdateView, VoteFormView, ) urlpatterns = [ path("", ElectionsListView.as_view(), name="list"), path("archived/", ElectionListArchivedView.as_view(), name="list_archived"), path("add/", ElectionCreateView.as_view(), name="create"), path("/edit/", ElectionUpdateView.as_view(), name="update"), path("/delete/", ElectionDeleteView.as_view(), name="delete"), path( "/list/add/", ElectionListCreateView.as_view(), name="create_list", ), path( "/list/delete/", ElectionListDeleteView.as_view(), name="delete_list", ), path( "/role/create/", RoleCreateView.as_view(), name="create_role" ), path("/role/edit/", RoleUpdateView.as_view(), name="update_role"), path("/role/delete/", RoleDeleteView.as_view(), name="delete_role"), path( "/candidate/add/", CandidatureCreateView.as_view(), name="candidate", ), path( "/candidate/edit/", CandidatureUpdateView.as_view(), name="update_candidate", ), path( "/candidate/delete/", CandidatureDeleteView.as_view(), name="delete_candidate", ), path("/vote/", VoteFormView.as_view(), name="vote"), path("/detail/", ElectionDetailView.as_view(), name="detail"), ]