Skip to content

Commit

Permalink
Merge pull request #402 from uw-it-aca/task/robots.txt
Browse files Browse the repository at this point in the history
add robots.txt file
  • Loading branch information
jlaney committed Apr 11, 2024
2 parents 42d6c49 + 2e84770 commit 2edcbe2
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 2edcbe2

Please sign in to comment.