diff --git a/index/views.py b/index/views.py index 8687e19..798528d 100644 --- a/index/views.py +++ b/index/views.py @@ -1,5 +1,13 @@ from django.views.generic import TemplateView +from django.utils.translation import ugettext_lazy as _ + class IndexView(TemplateView): template_name = 'index/index.html' + title = _('Русские программы') + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context['title'] = self.title + return context