expephalon/core/views/frontend/__init__.py
2020-06-04 08:03:35 +02:00

10 lines
No EOL
328 B
Python

from django.views.generic import TemplateView
from django.conf import settings
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