Add various urls

This commit is contained in:
PCoder 2021-07-28 17:18:27 +05:30
parent f7becb5c1b
commit 52be121ddc
1 changed files with 11 additions and 3 deletions

View File

@ -16,7 +16,11 @@ Including another URLconf
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
from django.views.generic import TemplateView 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' ] FILTER_QUERIES = [ 'country', 'range', 'field', 'taxon' ]
@ -59,11 +63,15 @@ def get_paginated(query, request):
urlpatterns = [ urlpatterns = [
path('', HomePageView.as_view(), name='home'), path('', HomePageView.as_view(), name='home'),
path('offline/', OfflinePageView.as_view(), name='offline'), path('offline/', OfflinePageView.as_view(), name='offline'),
path('geodata/<path:path>/', send_from_file, name='send_geodata_file'), path('geodata/<path:filename>/', send_from_file, name='send_geodata_file'),
path('data/<path:path>', send_from_file, name='send_data_file'), path('data/<path:filename>', send_from_file, name='send_data_file'),
path('demo/', DemoPageView.as_view(), name='demo'), path('demo/', DemoPageView.as_view(), name='demo'),
path('admin/', admin.site.urls, name='admin'), path('admin/', admin.site.urls, name='admin'),
path('config/', ConfigurationPageView.as_view(), name='config'), 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 # TODO Implement the following