Fix error 505 in robots.txt

This commit is contained in:
Jean-Marie Favreau 2024-12-27 16:24:28 +01:00
parent 84ce4b0d7d
commit 19a51bc403
2 changed files with 2 additions and 1 deletions

View File

@ -250,6 +250,7 @@ LOCATION_FIELD = {
# stop robots
ROBOTS_USE_SITEMAP = False
ROBOTS_SITE_BY_REQUEST = 'cached-sitemap'
# debug
if DEBUG:

View File

@ -206,7 +206,7 @@ urlpatterns = [
"sitemap.xml",
cache_page(86400)(sitemap),
{"sitemaps": sitemaps},
name="django.contrib.sitemaps.views.sitemap",
name="cached-sitemap",
),
path("cache/clear", clear_cache, name="clear_cache"),