Programming

1. urls

from django.urls import path

from . import views

app_name = "portfolio"

urlpatterns = [
    path("", views.dashboard, name="dashboard"),
    path("section/<str:section>/", views.section_partial, name="section"),
    path("chart/<str:slug>/", views.chart_partial, name="chart"),
    path("api/mart/<str:name>.json", views.mart_api, name="mart_api"),
    path("api/mart/<str:name>.csv", views.mart_csv, name="mart_csv"),
    path("report/<int:period>/<str:lang>/", views.download_report, name="report"),
    path("health/", views.health, name="health"),
]
Helpful? Dislike 0 Log in to react