Skip to content

Commit

Permalink
Merge pull request #10 from Apreche/robotsfix
Browse files Browse the repository at this point in the history
Remove unnecessary escape character from robots.txt url path
  • Loading branch information
Scott Rubin committed Jul 25, 2021
2 parents bbe7f3b + 8f3ef5a commit 1033cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_name/urls.py-tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ urlpatterns = [
path("admin/", admin.site.urls),
path("admin/doc/", include("django.contrib.admindocs.urls")),
path(
"robots\.txt",
"robots.txt",
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
),
] + static(
Expand Down

0 comments on commit 1033cc0

Please sign in to comment.