from django.urls import path from . import views urlpatterns = [ path("create/", views.ElectionCreateView.as_view(), name="election.create"), path("update/", views.ElectionUpdateView.as_view(), name="election.update"), path("view/", views.ElectionView.as_view(), name="election.view"), path("vote/", views.VoteView.as_view(), name="election.vote"), ]