Move robots.txt to static file instead of Django

This commit is contained in:
Joakim Hellsén 2026-03-13 01:28:49 +01:00
commit ee8cc87196
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
5 changed files with 6 additions and 84 deletions

View file

@ -12,8 +12,7 @@ if TYPE_CHECKING:
from django.urls.resolvers import URLResolver
urlpatterns: list[URLPattern | URLResolver] = [
path("sitemap.xml", twitch_views.sitemap_view, name="sitemap"),
path("robots.txt", twitch_views.robots_txt_view, name="robots"),
path(route="sitemap.xml", view=twitch_views.sitemap_view, name="sitemap"),
path(route="", view=include("twitch.urls", namespace="twitch")),
]