view sg101/views.py @ 1202:50e511e032db

Get unit tests working again.
author Brian Neal <bgneal@gmail.com>
date Sat, 04 Jan 2025 14:10:38 -0600
parents c31008989a16
children
line wrap: on
line source
"""Misc views for SG101"""

from django.views.generic import TemplateView


class HomePageView(TemplateView):
    template_name = 'home.html'

    def get_context_data(self, **kwargs):
        context = super(HomePageView, self).get_context_data(**kwargs)
        context['V3_DESIGN'] = True
        return context


class StoreView(TemplateView):
    template_name = 'store/base.html'

    def get_context_data(self, **kwargs):
        context = super(StoreView, self).get_context_data(**kwargs)
        context['V3_DESIGN'] = True
        return context