From a3015ba8429a09878ed6c35d7c7c76a882de7dcf Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 8 Nov 2014 15:52:18 -0600 Subject: Override default sitemap.xml template The Django one uses the spaceless tag, which isn't all that useful when we are gzipping the response anyway. Remove it to make generation a tad faster. Signed-off-by: Dan McGee --- urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 518e88e7..2d174012 100644 --- a/urls.py +++ b/urls.py @@ -81,7 +81,7 @@ urlpatterns += patterns('', {'sitemaps': our_sitemaps, 'sitemap_url_name': 'sitemaps'}), (r'^sitemap-(?P
.+)\.xml$', cache_page(1831)(sitemap_views.sitemap), - {'sitemaps': our_sitemaps}, 'sitemaps'), + {'sitemaps': our_sitemaps, 'template_name': 'sitemaps/sitemap.xml'}, 'sitemaps'), ) # Authentication / Admin -- cgit v1.2.3