Prevent search engines indexing us

Might help cut down the spam
This commit is contained in:
2021-02-22 23:41:58 +00:00
parent 8505d5e93a
commit 0e07c50c18
3 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ urlpatterns = [
path('', include('users.urls')),
path('admin/', admin.site.urls),
path("robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain")),
]
if settings.DEBUG: