Добавил Яндекс вебмастер
This commit is contained in:
parent
ce76c093d1
commit
21b38c0486
@ -0,0 +1,6 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
</head>
|
||||||
|
<body>Verification: cdc16c33291495b9</body>
|
||||||
|
</html>
|
||||||
@ -31,6 +31,7 @@ urlpatterns = [
|
|||||||
path('profile/', views.ProfileView.as_view(), name='profile'),
|
path('profile/', views.ProfileView.as_view(), name='profile'),
|
||||||
path('profile/edit/', views.ProfileEditView.as_view(), name='profile_edit'),
|
path('profile/edit/', views.ProfileEditView.as_view(), name='profile_edit'),
|
||||||
path('privacy/', PrivacyPolicyView.as_view(), name='privacy'),
|
path('privacy/', PrivacyPolicyView.as_view(), name='privacy'),
|
||||||
|
path('yandex_cdc16c33291495b9.html/', yandex_html, name='yandex_cdc16c33291495b9'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -416,5 +416,9 @@ def statistics_view(request: HttpRequest) -> HttpResponse:
|
|||||||
@require_GET
|
@require_GET
|
||||||
def robots_txt(request: HttpRequest) -> HttpResponse:
|
def robots_txt(request: HttpRequest) -> HttpResponse:
|
||||||
"""Отдает robots.txt."""
|
"""Отдает robots.txt."""
|
||||||
return render(request, 'robots.txt', content_type='text/plain')
|
return render(request, 'programmer/robots.txt', content_type='text/plain')
|
||||||
|
|
||||||
|
@require_GET
|
||||||
|
def yandex_html(request: HttpRequest) -> HttpResponse:
|
||||||
|
"""Отдает yandex_cdc16c33291495b9.html."""
|
||||||
|
return render(request, 'programmer/yandex_cdc16c33291495b9.html', content_type='text/html')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user