diff --git a/config/urls.py b/config/urls.py index ae56148..49724ee 100644 --- a/config/urls.py +++ b/config/urls.py @@ -7,11 +7,15 @@ from django.conf.urls.static import static from django.urls import include from django.urls import path +from twitch import views as twitch_views + if TYPE_CHECKING: from django.urls.resolvers import URLPattern from django.urls.resolvers import URLResolver -urlpatterns: [URLPattern | URLResolver] = [ # type: ignore[assignment] +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="", view=include("twitch.urls", namespace="twitch")), ] diff --git a/pyproject.toml b/pyproject.toml index 43d48f3..4242132 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,4 +103,4 @@ line-length = 120 [tool.djlint] profile = "django" -ignore = "H021" +ignore = "H021,H030" diff --git a/templates/base.html b/templates/base.html index bbae34e..21a64d3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,14 +16,13 @@ -