drought_backup/dashboard/urls.py

81 lines
5.5 KiB
Python
Raw Normal View History

2018-07-06 06:08:28 +00:00
from django.urls import path
2018-07-09 12:23:16 +00:00
from dashboard.views import SpiListView, SpiCreateView, SpiUpdateView, SpiDeleteView, SpiDetailView, LanduseListView, \
LanduseCreateView, \
2018-07-06 11:59:04 +00:00
LanduseUpdateView, LanduseDeleteView, LanduseDetailView, HydroListView, HydroCreateView, HydroUpdateView, \
2018-07-06 12:53:41 +00:00
HydroDeleteView, HydroDetailView, FinanceListView, FinanceCreateView, FinanceUpdateView, FinanceDeleteView, \
FinanceDetailView, SpiImportView, HydroImportView, LanduseImportView, FinanceImportView, RevenueListView, \
2018-12-08 12:22:03 +00:00
RevenueCreateView, RevenueImportView, RevenueUpdateView, RevenueDeleteView, RevenueDetailView, SpiDataDetailView, \
PopulationListView, PopulationCreateView, PopulationImportView, PopulationUpdateView, PopulationDeleteView, \
PopulationDetailView, GDPListView, GDPCreateView, GDPImportView, GDPUpdateView, GDPDeleteView, GDPDetailView
2018-07-06 06:08:28 +00:00
from . import views
urlpatterns = [
2018-07-06 09:47:36 +00:00
path('', views.index, name='dashboard-index'),
2018-07-06 10:27:06 +00:00
path('spi/', SpiListView.as_view(), name='data-spi-list'),
path('spi/add/', SpiCreateView.as_view(), name='data-spi-add'),
2018-07-09 12:23:16 +00:00
path('spi/import/', SpiImportView.as_view(), name='data-spi-import'),
2018-07-06 10:27:06 +00:00
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'),
2018-07-08 06:25:32 +00:00
path('spi.json', views.spi_json, name='spi-json'),
2018-12-08 12:22:03 +00:00
path('spi/datadetail/', views.SpiDataDetailView, name='data-spi-datadetail'),
2018-07-06 11:59:04 +00:00
path('hydro/', HydroListView.as_view(), name='data-hydro-list'),
path('hydro/add/', HydroCreateView.as_view(), name='data-hydro-add'),
2018-07-09 12:23:16 +00:00
path('hydro/import/', HydroImportView.as_view(), name='data-hydro-import'),
2018-07-06 11:59:04 +00:00
path('hydro/update/<str:pk>/', HydroUpdateView.as_view(), name='data-hydro-update'),
2018-12-08 12:22:03 +00:00
path('hydro.json', views.hydro_json, name='hydro-json'),
2018-07-06 11:59:04 +00:00
path('hydro/<str:pk>/delete/', HydroDeleteView.as_view(), name='data-hydro-delete'),
path('hydro/<str:pk>/detail/', HydroDetailView.as_view(), name='data-hydro-detail'),
2018-12-08 12:22:03 +00:00
path('hydro/datadetail/', views.HydroDataDetailView, name='data-hydro-datadetail'),
2018-07-06 11:59:04 +00:00
path('landuse/', LanduseListView.as_view(), name='data-landuse-list'),
path('landuse/add/', LanduseCreateView.as_view(), name='data-landuse-add'),
2018-12-08 12:22:03 +00:00
path('landuse.json', views.landuse_json, name='landuse-json'),
2018-07-09 12:23:16 +00:00
path('landuse/import/', LanduseImportView.as_view(), name='data-landuse-import'),
2018-07-06 11:59:04 +00:00
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'),
2018-12-08 12:22:03 +00:00
path('landuse/datadetail/', views.LanduseDataDetailView, name='data-landuse-datadetail'),
2018-07-06 12:53:41 +00:00
path('finance/', FinanceListView.as_view(), name='data-finance-list'),
path('finance/add/', FinanceCreateView.as_view(), name='data-finance-add'),
2018-07-09 12:23:16 +00:00
path('finance/import/', FinanceImportView.as_view(), name='data-finance-import'),
2018-07-06 12:53:41 +00:00
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'),
2018-12-08 12:22:03 +00:00
path('finance/', views.finance_chart, name='finance_chart'),
2018-07-06 12:53:41 +00:00
path('revenue/', RevenueListView.as_view(), name='data-revenue-list'),
path('revenue/add/', RevenueCreateView.as_view(), name='data-revenue-add'),
2018-11-29 07:03:47 +00:00
path('revenue.json', views.revenue_json, name='revenue-json'),
2018-12-08 12:22:03 +00:00
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'),
2018-12-08 12:22:03 +00:00
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'),
2018-07-06 06:08:28 +00:00
]