expephalon-kumisms/core/views/__init__.py
Klaus-Uwe Mitterer 8eab735bd8 Make page titles dynamic
Remove unused files
Fix buttons in dbsettings
2020-04-16 11:02:22 +02:00

32 lines
No EOL
991 B
Python

from django.shortcuts import render
from django.views.generic import TemplateView
from django.conf import settings
from core.views.dbsettings import *
from core.views.auth import *
# Create your views here.
class IndexView(TemplateView):
template_name = f"{settings.EXPEPHALON_FRONTEND}/index.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = "Home"
return context
class DashboardView(TemplateView):
template_name = f"{settings.EXPEPHALON_BACKEND}/index.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = "Dashboard"
return context
class BackendNotImplementedView(TemplateView):
template_name = f"{settings.EXPEPHALON_BACKEND}/notimplemented.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = "Oops!"
return context