Skip to content

Commit

Permalink
add robots.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaney committed Apr 11, 2024
1 parent 42d6c49 commit 2e84770
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compass/templates/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
2 changes: 2 additions & 0 deletions compass/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
]

urlpatterns += [
re_path(r"^robots\.txt$", TemplateView.as_view(
template_name="robots.txt", content_type="text/plain")),
re_path(r"^admin", admin_site.urls),
re_path(
r"^unauthorized-user$",
Expand Down

0 comments on commit 2e84770

Please sign in to comment.