drought/dashboard/urls.py

94 lines
6.5 KiB
Python

from django.urls import path
from dashboard.views import SpiListView, SpiCreateView, SpiUpdateView, SpiDeleteView, SpiDetailView, LanduseListView, \
LanduseCreateView, \
LanduseUpdateView, LanduseDeleteView, LanduseDetailView, HydroListView, HydroCreateView, HydroUpdateView, \
HydroDeleteView, HydroDetailView, FinanceListView, FinanceCreateView, FinanceUpdateView, FinanceDeleteView, \
FinanceDetailView, SpiImportView, HydroImportView, LanduseImportView, FinanceImportView, RevenueListView, \
RevenueCreateView, RevenueImportView, RevenueUpdateView, RevenueDeleteView, RevenueDetailView, SpiDataDetailView, \
PopulationListView, PopulationCreateView, PopulationImportView, PopulationUpdateView, PopulationDeleteView, \
PopulationDetailView, GDPListView, GDPCreateView, GDPImportView, GDPUpdateView, GDPDeleteView, GDPDetailView, \
SpiJCListView, SpiJCCreateView, SpiJCImportView, SpiJCUpdateView, SpiJCDeleteView, SpiJCDetailView
from . import views
urlpatterns = [
path('', views.index, name='dashboard-index'),
path('spi/', SpiListView.as_view(), name='data-spi-list'),
path('spi/add/', SpiCreateView.as_view(), name='data-spi-add'),
path('spi/import/', SpiImportView.as_view(), name='data-spi-import'),
path('spi/update/<str:pk>/', SpiUpdateView.as_view(), name='data-spi-update'),
path('spi/<str:pk>/delete/', SpiDeleteView.as_view(), name='data-spi-delete'),
path('spi/<str:pk>/detail/', SpiDetailView.as_view(), name='data-spi-detail'),
path('spi.json', views.spi_json, name='spi-json'),
path('spi/datadetail/', views.SpiDataDetailView, name='data-spi-datadetail'),
path('spi_jc/', SpiJCListView.as_view(), name='data-spi-jc-list'),
path('spi_jc/add/', SpiJCCreateView.as_view(), name='data-spi-jc-add'),
path('spi_jc/import/', SpiJCImportView.as_view(), name='data-spi-jc-import'),
path('spi_jc/update/<str:pk>/', SpiJCUpdateView.as_view(), name='data-spi-jc-update'),
path('spi_jc/<str:pk>/delete/', SpiJCDeleteView.as_view(), name='data-spi-jc-delete'),
path('spi_jc/<str:pk>/detail/', SpiJCDetailView.as_view(), name='data-spi-jc-detail'),
path('spi_jc.json', views.spi_jc_json, name='spi-jc-json'),
path('spi_jc/datadetail/', views.SpiJCDataDetailView, name='data-spi-jc-datadetail'),
path('hydro/', HydroListView.as_view(), name='data-hydro-list'),
path('hydro/add/', HydroCreateView.as_view(), name='data-hydro-add'),
path('hydro/import/', HydroImportView.as_view(), name='data-hydro-import'),
path('hydro/update/<str:pk>/', HydroUpdateView.as_view(), name='data-hydro-update'),
path('hydro.json', views.hydro_json, name='hydro-json'),
path('hydro/<str:pk>/delete/', HydroDeleteView.as_view(), name='data-hydro-delete'),
path('hydro/<str:pk>/detail/', HydroDetailView.as_view(), name='data-hydro-detail'),
path('hydro/datadetail/', views.HydroDataDetailView, name='data-hydro-datadetail'),
path('landuse/', LanduseListView.as_view(), name='data-landuse-list'),
path('landuse/add/', LanduseCreateView.as_view(), name='data-landuse-add'),
path('landuse.json', views.landuse_json, name='landuse-json'),
path('landuse/import/', LanduseImportView.as_view(), name='data-landuse-import'),
path('landuse/update/<str:pk>/', LanduseUpdateView.as_view(), name='data-landuse-update'),
path('landuse/<str:pk>/delete/', LanduseDeleteView.as_view(), name='data-landuse-delete'),
path('landuse/<str:pk>/detail/', LanduseDetailView.as_view(), name='data-landuse-detail'),
path('landuse/datadetail/', views.LanduseDataDetailView, name='data-landuse-datadetail'),
path('finance/', FinanceListView.as_view(), name='data-finance-list'),
path('finance/add/', FinanceCreateView.as_view(), name='data-finance-add'),
path('finance/import/', FinanceImportView.as_view(), name='data-finance-import'),
path('finance/update/<str:pk>/', FinanceUpdateView.as_view(), name='data-finance-update'),
path('finance/<str:pk>/delete/', FinanceDeleteView.as_view(), name='data-finance-delete'),
path('finance/<str:pk>/detail/', FinanceDetailView.as_view(), name='data-finance-detail'),
path('finance/', views.finance_chart, name='finance_chart'),
path('revenue/', RevenueListView.as_view(), name='data-revenue-list'),
path('revenue/add/', RevenueCreateView.as_view(), name='data-revenue-add'),
path('revenue.json', views.revenue_json, name='revenue-json'),
path('revenue/import/', RevenueImportView.as_view(), name='data-revenue-import'),
path('revenue/update/<str:pk>/', RevenueUpdateView.as_view(), name='data-revenue-update'),
path('revenue/<str:pk>/delete/', RevenueDeleteView.as_view(), name='data-revenue-delete'),
path('revenue/<str:pk>/detail/', RevenueDetailView.as_view(), name='data-revenue-detail'),
path('revenue/datadetail/', views.RevenueDataDetailView, name='data-revenue-datadetail'),
path('population/', PopulationListView.as_view(), name='data-population-list'),
path('population/add/', PopulationCreateView.as_view(), name='data-population-add'),
path('population.json', views.population_json, name='population-json'),
path('population/import/', PopulationImportView.as_view(), name='data-population-import'),
path('population/update/<str:pk>/', PopulationUpdateView.as_view(), name='data-population-update'),
path('population/<str:pk>/delete/', PopulationDeleteView.as_view(), name='data-population-delete'),
path('population/<str:pk>/detail/', PopulationDetailView.as_view(), name='data-population-detail'),
path('population/datadetail/', views.PopulationDataDetailView, name='data-population-datadetail'),
path('gdp/', GDPListView.as_view(), name='data-gdp-list'),
path('gdp/add/', GDPCreateView.as_view(), name='data-gdp-add'),
path('gdp.json', views.gdp_json, name='gdp-json'),
path('gdp/import/', GDPImportView.as_view(), name='data-gdp-import'),
path('gdp/update/<str:pk>/', GDPUpdateView.as_view(), name='data-gdp-update'),
path('gdp/<str:pk>/delete/', GDPDeleteView.as_view(), name='data-gdp-delete'),
path('gdp/<str:pk>/detail/', GDPDetailView.as_view(), name='data-gdp-detail'),
path('gdp/datadetail/', views.GDPDataDetailView, name='data-gdp-datadetail'),
path('hydro_chart/', views.hydro_chart, name='hydro_chart'),
path('landuse_chart/', views.landuse_chart, name='landuse_chart'),
path('administrative_division/',views.administrative_division,name = 'data-administrative-division'),
path('lucc/',views.lucc,name = 'data-lucc'),
path('crop_planting_distribution/',views.crop_planting_distribution,name = 'data-crop-planting-distribution')
]