From b82a6a27cf57a1cd5a882fa525d908feb31a2879 Mon Sep 17 00:00:00 2001 From: NikDizell Date: Sun, 5 Apr 2026 22:53:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=B4=D0=BE=D1=81=D1=82=D0=B0=D1=8E=D1=89=D0=B8?= =?UTF-8?q?=D0=B9=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- programmer/urls.py | 4 +++- programmer/views.py | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.47.2