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/blog/views.py

12 lines
344 B
Python
Raw Normal View History

2020-05-07 14:38:11 +01:00
from django.templatetags.static import static
2020-05-07 14:24:50 +01:00
from django.views.generic import TemplateView
class BlogListView(TemplateView):
template_name = "blog/index.html"
2020-05-07 14:38:11 +01:00
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["header_image"] = static("img/header.jpg")
return context