diff --git a/PyRIGS/urls.py b/PyRIGS/urls.py index 73f80bc8..00794415 100644 --- a/PyRIGS/urls.py +++ b/PyRIGS/urls.py @@ -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: diff --git a/templates/index.html b/templates/index.html index 137899a9..bf95f4c4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -33,7 +33,7 @@ TEC Forum TEC Wiki {% if perms.RIGS.view_event %} - Price List + Price List {% endif %} diff --git a/templates/robots.txt b/templates/robots.txt new file mode 100644 index 00000000..1f53798b --- /dev/null +++ b/templates/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /