2 from django.conf import settings
3 from django.views.generic import TemplateView
4 from pybb.views import ProfileEditView
5 from .forms import AvatarlessEditProfileForm
8 class HomeView(TemplateView):
9 template_name="home.html"
11 def get_context_data(self, **kwargs):
12 context = super(HomeView, self).get_context_data(**kwargs)
13 context['package_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE)
14 context['package_student_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE_STUDENT)
18 class MILHomeView(TemplateView):
19 template_name = 'base_mil.html'
22 class AvatarlessProfileEditView(ProfileEditView):
23 form_class = AvatarlessEditProfileForm