add: все для sitemaps.xml + robots.txt

This commit is contained in:
erjemin committed 2026-09-06 23:42:00 +03:00
1 parent a969e12233
commit 1a61f36fc1
5 files changed
+178

No files matched your search

+5
View File
@@ -15,11 +15,16 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.urls import include, path
from django.conf.urls.static import static
from hypn0_site.sitemaps import sitemaps
from . import settings
urlpatterns = [
# Карта сайта sitemap.xml для поисковой индексации
path("sitemap.xml", sitemap, {"sitemaps": sitemaps}, name="django.contrib.sitemaps.views.sitemap"),
# Админ-сайт с переименованными приложениями (переопределен в frontend/apps.py)
path(settings.ADMIN_URL, admin.site.urls),
path('', include('hypn0_site.urls')),