Fix error 505 in robots.txt
This commit is contained in:
parent
84ce4b0d7d
commit
19a51bc403
@ -250,6 +250,7 @@ LOCATION_FIELD = {
|
||||
# stop robots
|
||||
|
||||
ROBOTS_USE_SITEMAP = False
|
||||
ROBOTS_SITE_BY_REQUEST = 'cached-sitemap'
|
||||
|
||||
# debug
|
||||
if DEBUG:
|
||||
|
@ -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"),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user