1
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
website-2020-spike/website/common/views.py

16 lines
408 B
Python

from django.templatetags.static import static
from django.views.generic import TemplateView
class HomepageView(TemplateView):
template_name = "homepage.html"
class AboutView(TemplateView):
template_name = "about.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["header_image"] = static("img/header.jpg")
return context