2020-03-24 11:59:43 +00:00
|
|
|
from django.shortcuts import render
|
2020-04-07 19:52:10 +00:00
|
|
|
from django.views.generic import TemplateView, ListView
|
|
|
|
from django.conf import settings
|
2020-03-24 11:59:43 +00:00
|
|
|
|
|
|
|
# Create your views here.
|
2020-04-07 19:52:10 +00:00
|
|
|
|
|
|
|
class IndexView(TemplateView):
|
|
|
|
template_name = f"{settings.EXPEPHALON_FRONTEND}/index.html"
|
|
|
|
|
|
|
|
class DashboardView(TemplateView):
|
|
|
|
template_name = f"{settings.EXPEPHALON_BACKEND}/index.html"
|
|
|
|
|
|
|
|
try:
|
|
|
|
from dbsettings.models import Setting
|
|
|
|
|
|
|
|
class DBSettingsListView(ListView):
|
|
|
|
template_name = f"{settings.EXPEPHALON_BACKEND}/dbsettings.html"
|
|
|
|
model = Setting
|
|
|
|
|
|
|
|
except ModuleNotFoundError:
|
|
|
|
pass
|