Generate internal sitemap including devel docs

We'll use this to index some things in our own search engine without
exposing it to external sitemap parsers. Not from a security standpoint
of course, but something that will lead to it being possible to search
the devel docs again.
This commit is contained in:
Magnus Hagander
2017-03-23 12:03:18 +01:00
parent 30134cb164
commit 428f299f48
4 changed files with 31 additions and 7 deletions

View File

@ -81,6 +81,7 @@ urlpatterns = patterns('',
# Sitemap (FIXME: support for >50k urls!)
###
(r'^sitemap.xml', 'pgweb.core.views.sitemap'),
(r'^sitemap_internal.xml', 'pgweb.core.views.sitemap_internal'),
###
# Workaround for broken links pushed in press release