from django.urls import path from dashboard import views urlpatterns = [ path("", views.index, name="dashboard-index"), path("metric/", views.index, name="metric-list"), path("metric//", views.metric_detail, name="metric-detail"), path("metric/.json", views.metric_json, name="metric-json"), ]