Fix error 505 in robots.txt
This commit is contained in:
parent
84ce4b0d7d
commit
19a51bc403
@ -250,6 +250,7 @@ LOCATION_FIELD = {
|
|||||||
# stop robots
|
# stop robots
|
||||||
|
|
||||||
ROBOTS_USE_SITEMAP = False
|
ROBOTS_USE_SITEMAP = False
|
||||||
|
ROBOTS_SITE_BY_REQUEST = 'cached-sitemap'
|
||||||
|
|
||||||
# debug
|
# debug
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
|
@ -206,7 +206,7 @@ urlpatterns = [
|
|||||||
"sitemap.xml",
|
"sitemap.xml",
|
||||||
cache_page(86400)(sitemap),
|
cache_page(86400)(sitemap),
|
||||||
{"sitemaps": sitemaps},
|
{"sitemaps": sitemaps},
|
||||||
name="django.contrib.sitemaps.views.sitemap",
|
name="cached-sitemap",
|
||||||
),
|
),
|
||||||
path("cache/clear", clear_cache, name="clear_cache"),
|
path("cache/clear", clear_cache, name="clear_cache"),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user