Skip to content

Commit 81aaa24

Browse files
committed
update robots
1 parent 2b06141 commit 81aaa24

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
User-agent: *
2-
Disallow: *lessons*
3-
Host: https://learn.python.ru/
2+
Disallow: /admin/
3+
Disallow: /success/
4+
Sitemap: http://learn.python.ru/sitemap.xml
5+
Clean-param: *

landing_page/mainpage/templates/mainpage/robots.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

landing_page/mainpage/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
path('advanced/', views.advanced_handle, name='index_advanced'),
1010
path('advanced/success/', views.success_handle_advanced, name='success_advanced'),
1111

12-
path('robots.txt', views.robots_txt_handle, name='robots_txt'),
1312
]

landing_page/mainpage/views.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,3 @@ def success_handle_advanced(request: HttpRequest) -> HttpResponse:
5858
'enrollment': enrollment,
5959
},
6060
)
61-
62-
63-
def robots_txt_handle(request: HttpRequest) -> HttpResponse:
64-
return render(
65-
request,
66-
'mainpage/robots.txt',
67-
)

0 commit comments

Comments
 (0)