expephalon-playsms/core/views.py
Klaus-Uwe Mitterer a133ea4cb1 A lot of changes:
Prepare for Minio/S3 media storage
Add current FontAwesome
Move statics and templates out of core
Add navigation menu generation
Add name attribute to URLs
Probably many other things I forgot by now
2020-04-07 21:52:10 +02:00

21 lines
573 B
Python

from django.shortcuts import render
from django.views.generic import TemplateView, ListView
from django.conf import settings
# Create your views here.
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