b49771644e9c66892c3b3a7bed09baddcc16be9c
[edumed.git] / edumed / views.py
1 import os.path
2 from django.conf import settings
3 from django.views.generic import TemplateView
4
5 class HomeView(TemplateView):
6     template_name="home.html"
7
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)
12         return context