from django.urls import path from . import views urlpatterns = [ # Admin views path("create", views.PetitionCreateView.as_view(), name="petition.create"), path("admin/", views.PetitionAdminView.as_view(), name="petition.admin"), path("update/", views.PetitionUpdateView.as_view(), name="petition.update"), path( "archive/", views.PetitionArchiveView.as_view(), name="petition.archive" ), path( "delete///", views.DeleteSignatureView.as_view(), name="petition.delete-signature", ), path( "validate///", views.ValidateSignatureView.as_view(), name="petition.validate", ), # Verification views path( "email/", views.EmailValidationView.as_view(), name="petition.confirm-email", ), # Public views path("", views.PetitionListView.as_view(), name="petition.list"), path("view/", views.PetitionView.as_view(), name="petition.view"), path("sign/", views.PetitionSignView.as_view(), name="petition.sign"), ]