28 lines
1.6 KiB
Python
28 lines
1.6 KiB
Python
from django.urls import path
|
|
from djgeojson.views import GeoJSONLayerView
|
|
|
|
from graphic.models import Address, Station, Grid
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='graphic-index'),
|
|
path('timeline/', views.timeline, name='graphic-timeline'),
|
|
path('address.geojson', GeoJSONLayerView.as_view(model=Address, properties=('name',)), name='address-geo'),
|
|
path('station.geojson', GeoJSONLayerView.as_view(model=Station, properties=('code',)), name='station-geo'),
|
|
path('grid.geojson', GeoJSONLayerView.as_view(model=Grid), name='station-geo'),
|
|
path('spi.geojson', views.spi, name='spi-geo'),
|
|
path('timeline1/', views.timeline1, name='graphic-timeline1'),
|
|
path('timeline2/', views.timeline2, name='graphic-timeline2'),
|
|
path('timeline3/', views.timeline3, name='graphic-timeline3'),
|
|
path('proxy/', views.proxy, name='graphic-proxy'),
|
|
path('chart/code', views.spi_chart_code, name='graphic-chart-code'),
|
|
path('chart/time', views.spi_chart_time, name='graphic-chart-time'),
|
|
path('chart/spitimelist', views.spi_chart_time_list, name='data-graphic-chart-spi-time_list'),
|
|
path('chart/hydrotimelist',views.hydro_chart_time_list,name = 'data-graphic-chart-hydro-time_list'),
|
|
path('chart/revenuetimelist',views.revenue_chart_time_list,name = 'data-graphic-chart-revenue-time_list'),
|
|
path('chart/landusetimelist',views.landuse_chart_time_list,name = 'data-graphic-chart-landuse-time_list'),
|
|
path('chart/populationtimelist', views.population_chart_time_list, name='data-graphic-chart-population-time_list'),
|
|
path('chart/gdptimelist', views.gdp_chart_time_list, name='data-graphic-chart-gdp-time_list')
|
|
|
|
]
|