diff --git a/programmer/urls.py b/programmer/urls.py index 74592cb..f5d2461 100644 --- a/programmer/urls.py +++ b/programmer/urls.py @@ -25,7 +25,9 @@ urlpatterns = [ # Sitemap path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'), path('robots.txt', views.robots_txt, name='robots'), - path('login/', auth_views.LoginView.as_view(template_name='programmer/login.html'), name='login'), + path('login/', auth_views.LoginView.as_view(template_name='programmer/login.html', + extra_context={'title': 'Вход | СНА Технологии'}), + name='login'), path('logout/', auth_views.LogoutView.as_view(), name='logout'), path('register/', views.RegisterView.as_view(), name='register'), path('profile/', views.ProfileView.as_view(), name='profile'), diff --git a/programmer/views.py b/programmer/views.py index fc7889e..68457b7 100644 --- a/programmer/views.py +++ b/programmer/views.py @@ -217,6 +217,10 @@ class RegisterView(PageViewTrackingMixin, MenuContextMixin, SuccessMessageMixin, def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['next'] = self.request.GET.get('next', '') + context.update({ + 'title': "Регистрация | СНА Технологии", + }) + return context @@ -268,6 +272,14 @@ class PrivacyPolicyView(TemplateView, MenuContextMixin, BreadcrumbMixin): def get_breadcrumbs(self): return [{'title': 'Политика конфиденциальности', 'url_name': None}] + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context.update({ + 'title': "Политика конфиденциальности | СНА Технологии", + }) + + return context + class SolutionDetailView(MenuContextMixin, BreadcrumbMixin, DetailView): model = Solution