from django.urls import path from . import views urlpatterns = [ path('', views.dashboard, name='dashboard'), path('select-campaign//', views.select_campaign, name='select_campaign'), path('voters/', views.voter_list, name='voter_list'), path('voters/advanced-search/', views.voter_advanced_search, name='voter_advanced_search'), path('voters/export-csv/', views.export_voters_csv, name='export_voters_csv'), path('voters/bulk-sms/', views.bulk_send_sms, name='bulk_send_sms'), path('voters//', views.voter_detail, name='voter_detail'), path('voters//edit/', views.voter_update, name='voter_edit'), # Changed to voter_update path('voters//delete/', views.voter_delete, name='voter_delete'), path('voters//geocode/', views.voter_geocode, name='voter_geocode'), path('voters//schedule-call/', views.create_scheduled_call, name='schedule_call'), # Changed to create_scheduled_call path('voters/bulk-schedule-calls/', views.bulk_schedule_calls, name='bulk_schedule_calls'), path('voters//interaction/add/', views.interaction_create, name='add_interaction'), # Changed to interaction_create path('interaction//edit/', views.interaction_update, name='edit_interaction'), # Changed to pk and interaction_update path('interaction//delete/', views.interaction_delete, name='delete_interaction'), # Changed to pk and interaction_delete # Assuming donation, likelihood, event-participation views are correctly named in views.py and use 'pk' path('voters//donation/add/', views.donation_create, name='add_donation'), path('donation//edit/', views.donation_update, name='edit_donation'), path('donation//delete/', views.donation_delete, name='delete_donation'), path('voters//likelihood/add/', views.likelihood_create, name='add_likelihood'), path('likelihood//edit/', views.likelihood_update, name='edit_likelihood'), path('likelihood//delete/', views.likelihood_delete, name='delete_likelihood'), path('voters//event-participation/add/', views.event_participation_create, name='add_event_participation'), path('event-participation//edit/', views.event_participation_update, name='edit_event_participation'), path('event-participation//delete/', views.event_participation_delete, name='delete_event_participation'), # Event Detail and Participant Management path('events/', views.event_list, name='event_list'), path('events//', views.event_detail, name='event_detail'), # Changed to pk path('events/add/', views.event_create, name='event_create'), path('events//edit/', views.event_update, name='event_edit'), # Changed to pk and event_update path('events//participant/add/', views.event_add_participant, name='event_add_participant'), path('events/participant//edit/', views.event_edit_participant, name='event_edit_participant'), path('events/participant//delete/', views.event_delete_participant, name='event_delete_participant'), path('voters/search/json/', views.voter_search_json, name='voter_search_json'), path('events//import-participants/', views.import_participants, name='import_participants'), path('events//import-participants/map-fields/', views.import_participants_map_fields, name='import_participants_map_fields'), path('events//import-participants/process/', views.process_participants_import, name='process_participants_import'), path('events//import-participants/match/', views.match_participants, name='match_participants'), # Volunteer Management path('interests/add/', views.interest_add, name='interest_add'), path('interests//delete/', views.interest_delete, name='interest_delete'), path('volunteers/', views.volunteer_list, name='volunteer_list'), path('volunteers/add/', views.volunteer_create, name='volunteer_add'), # Changed to volunteer_create path('volunteers//', views.volunteer_detail, name='volunteer_detail'), # Changed to pk path('volunteers//delete/', views.volunteer_delete, name='volunteer_delete'), # Changed to pk path('volunteers//assign-event/', views.volunteer_assign_event, name='volunteer_assign_event'), path('volunteers/assignment//remove/', views.volunteer_remove_event, name='volunteer_remove_event'), path('volunteers/search/json/', views.volunteer_search_json, name='volunteer_search_json'), path('volunteers/bulk-sms/', views.volunteer_bulk_send_sms, name='volunteer_bulk_send_sms'), path('events//volunteer/add/', views.volunteer_event_create, name='event_add_volunteer'), # Changed to volunteer_event_create path('events/volunteer//delete/', views.volunteer_event_delete, name='event_remove_volunteer'), # Changed to pk and volunteer_event_delete # Door Visits path('door-visits/', views.door_visits, name='door_visits'), path('door-visits/log/', views.create_interaction_for_voter, name='log_door_visit'), # Changed to create_interaction_for_voter path('door-visits/history/', views.door_visit_history, name='door_visit_history'), # Call Queue path('call-queue/', views.call_queue, name='call_queue'), path('call-queue//complete/', views.complete_call, name='complete_call'), # Changed to pk path('call-queue//delete/', views.scheduled_call_delete, name='delete_call'), # Changed to pk and scheduled_call_delete path('profile/', views.profile, name='profile'), ]