citavi_mapper/frontend/views.py

18 lines
520 B
Python

# -*- coding: utf-8 -*-
from django.views.generic import TemplateView
class MainSite(TemplateView):
template_name = "base.html"
def get(self, request, **kwargs):
self._request = request
return super(MainSite, self).get(request, **kwargs)
def get_context_data(self, **kwargs):
context = super(MainSite, self).get_context_data(**kwargs)
context['title'] = 'Titeltest'
context['content'] = 'Foobar!'
context['headline'] = 'Yo!'
return context