Skip to content

Commit

Permalink
update robots
Browse files Browse the repository at this point in the history
  • Loading branch information
Melevir committed Nov 22, 2023
1 parent 2b06141 commit 81aaa24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
6 changes: 4 additions & 2 deletions landing_page/mainpage/static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
User-agent: *
Disallow: *lessons*
Host: https://learn.python.ru/
Disallow: /admin/
Disallow: /success/
Sitemap: http://learn.python.ru/sitemap.xml
Clean-param: *
5 changes: 0 additions & 5 deletions landing_page/mainpage/templates/mainpage/robots.txt

This file was deleted.

1 change: 0 additions & 1 deletion landing_page/mainpage/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
path('advanced/', views.advanced_handle, name='index_advanced'),
path('advanced/success/', views.success_handle_advanced, name='success_advanced'),

path('robots.txt', views.robots_txt_handle, name='robots_txt'),
]
7 changes: 0 additions & 7 deletions landing_page/mainpage/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,3 @@ def success_handle_advanced(request: HttpRequest) -> HttpResponse:
'enrollment': enrollment,
},
)


def robots_txt_handle(request: HttpRequest) -> HttpResponse:
return render(
request,
'mainpage/robots.txt',
)

0 comments on commit 81aaa24

Please sign in to comment.