2 from django.conf import settings
3 from django.views.generic import TemplateView
5 class HomeView(TemplateView):
6 template_name="home.html"
8 def get_context_data(self, **kwargs):
9 context = super(HomeView, self).get_context_data(**kwargs)
10 context['package_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE)
11 context['package_student_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE_STUDENT)