Add various urls
This commit is contained in:
parent
f7becb5c1b
commit
52be121ddc
1 changed files with 11 additions and 3 deletions
|
@ -16,7 +16,11 @@ Including another URLconf
|
|||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.views.generic import TemplateView
|
||||
from app.views import HomePageView, OfflinePageView, send_from_file, DemoPageView, ConfigurationPageView
|
||||
from app.views import (
|
||||
HomePageView, OfflinePageView, send_from_file, DemoPageView, ConfigurationPageView, get_progress, UploadView,
|
||||
ReindexPageView, RefreshPageView
|
||||
)
|
||||
|
||||
|
||||
FILTER_QUERIES = [ 'country', 'range', 'field', 'taxon' ]
|
||||
|
||||
|
@ -59,11 +63,15 @@ def get_paginated(query, request):
|
|||
urlpatterns = [
|
||||
path('', HomePageView.as_view(), name='home'),
|
||||
path('offline/', OfflinePageView.as_view(), name='offline'),
|
||||
path('geodata/<path:path>/', send_from_file, name='send_geodata_file'),
|
||||
path('data/<path:path>', send_from_file, name='send_data_file'),
|
||||
path('geodata/<path:filename>/', send_from_file, name='send_geodata_file'),
|
||||
path('data/<path:filename>', send_from_file, name='send_data_file'),
|
||||
path('demo/', DemoPageView.as_view(), name='demo'),
|
||||
path('admin/', admin.site.urls, name='admin'),
|
||||
path('config/', ConfigurationPageView.as_view(), name='config'),
|
||||
path('upload', UploadView.as_view(), name='upload'),
|
||||
path('progress', get_progress, name='progress'),
|
||||
path('reindex', ReindexPageView.as_view(), name='reindex'),
|
||||
path('refresh', RefreshPageView.as_view(), name='refresh'),
|
||||
|
||||
|
||||
# TODO Implement the following
|
||||
|
|
Loading…
Reference in a new issue