# === URL ROUTING === # Maps URLs to view functions. Each path() connects a web address to # the Python function that handles it. from django.urls import path from . import views urlpatterns = [ # Dashboard — the home page after login path('', views.index, name='home'), # Attendance logging — where supervisors log daily work path('attendance/log/', views.attendance_log, name='attendance_log'), # Work history — table of all work logs with filters path('history/', views.work_history, name='work_history'), # CSV export — downloads filtered work logs as a spreadsheet path('history/export/', views.export_work_log_csv, name='export_work_log_csv'), # AJAX toggle — activates/deactivates workers, projects, teams from dashboard path('toggle///', views.toggle_active, name='toggle_active'), ]