Add ConfigurationHomePageView
This commit is contained in:
parent
083e56a4de
commit
7edb14823e
2 changed files with 10 additions and 1 deletions
|
@ -153,6 +153,14 @@ class ConfigurationPageView(TemplateView):
|
|||
return HttpResponsePermanentRedirect(reverse('admin:index'))
|
||||
|
||||
|
||||
class ConfigurationHomePageView(TemplateView):
|
||||
template_name = "app/admin/index.html"
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
return context
|
||||
|
||||
|
||||
class UploadView(TemplateView):
|
||||
template_name = "app/admin/config.html"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ from django.urls import path
|
|||
from django.views.generic import TemplateView
|
||||
from app.views import (
|
||||
HomePageView, OfflinePageView, send_from_file, DemoPageView, ConfigurationPageView, get_progress, UploadView,
|
||||
ReindexPageView, RefreshPageView
|
||||
ReindexPageView, RefreshPageView, ConfigurationHomePageView
|
||||
)
|
||||
|
||||
|
||||
|
@ -67,6 +67,7 @@ urlpatterns = [
|
|||
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-home/', ConfigurationHomePageView.as_view(), name='config_home'),
|
||||
path('config/', ConfigurationPageView.as_view(), name='config'),
|
||||
path('upload', UploadView.as_view(), name='upload'),
|
||||
path('progress', get_progress, name='progress'),
|
||||
|
|
Loading…
Reference in a new issue