drought_backup/graphic/urls.py

29 lines
1.8 KiB
Python
Raw Normal View History

2018-07-06 11:22:59 +00:00
from django.urls import path
2018-07-06 11:57:46 +00:00
from djgeojson.views import GeoJSONLayerView
2018-07-06 11:22:59 +00:00
2018-07-07 09:42:32 +00:00
from graphic.models import Address, Station, Grid
2018-07-06 11:22:59 +00:00
from . import views
urlpatterns = [
path('', views.index, name='graphic-index'),
2018-07-06 13:34:51 +00:00
path('timeline/', views.timeline, name='graphic-timeline'),
2018-07-07 03:22:01 +00:00
path('address.geojson', GeoJSONLayerView.as_view(model=Address, properties=('name',)), name='address-geo'),
2018-07-07 09:42:32 +00:00
path('station.geojson', GeoJSONLayerView.as_view(model=Station, properties=('code',)), name='station-geo'),
path('grid.geojson', GeoJSONLayerView.as_view(model=Grid), name='station-geo'),
2018-07-07 15:00:25 +00:00
path('spi.geojson', views.spi, name='spi-geo'),
path('timeline1/', views.timeline1, name='graphic-timeline1'),
2018-07-08 05:10:47 +00:00
path('timeline2/', views.timeline2, name='graphic-timeline2'),
2018-07-08 14:41:55 +00:00
path('timeline3/', views.timeline3, name='graphic-timeline3'),
2018-07-09 12:23:16 +00:00
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'),
2018-12-08 12:22:03 +00:00
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'),
2019-01-02 02:50:12 +00:00
path('chart/gdptimelist', views.gdp_chart_time_list, name='data-graphic-chart-gdp-time_list'),
path('chart/spijctimelist',views.spi_jc_chart_time_list,name = 'data-graphic-chart-spi-jc-time-list'),
2018-12-08 12:22:03 +00:00
2018-07-06 11:22:59 +00:00
]