Mercurial > public > sg101
annotate 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 |
rev | line source |
---|---|
bgneal@1071 | 1 """Misc views for SG101""" |
bgneal@1071 | 2 |
bgneal@1071 | 3 from django.views.generic import TemplateView |
bgneal@1071 | 4 |
bgneal@1071 | 5 |
bgneal@1144 | 6 class HomePageView(TemplateView): |
bgneal@1144 | 7 template_name = 'home.html' |
bgneal@1144 | 8 |
bgneal@1144 | 9 def get_context_data(self, **kwargs): |
bgneal@1144 | 10 context = super(HomePageView, self).get_context_data(**kwargs) |
bgneal@1144 | 11 context['V3_DESIGN'] = True |
bgneal@1144 | 12 return context |
bgneal@1144 | 13 |
bgneal@1144 | 14 |
bgneal@1071 | 15 class StoreView(TemplateView): |
bgneal@1071 | 16 template_name = 'store/base.html' |
bgneal@1071 | 17 |
bgneal@1071 | 18 def get_context_data(self, **kwargs): |
bgneal@1071 | 19 context = super(StoreView, self).get_context_data(**kwargs) |
bgneal@1071 | 20 context['V3_DESIGN'] = True |
bgneal@1071 | 21 return context |