X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/143150bddf1a02498da0dcbdf0ad59d540c1519a..99d077e46d0eb3efd5e96a65f120e6e4b6197db0:/forum/sitemap.py diff --git a/forum/sitemap.py b/forum/sitemap.py index 26e9d18..0ba045b 100644 --- a/forum/sitemap.py +++ b/forum/sitemap.py @@ -25,7 +25,7 @@ def index(request, sitemaps): sites.append(final_url) xml = loader.render_to_string('sitemap_index.xml', {'sitemaps': sites}) - return HttpResponse(xml, mimetype='application/xml') + return HttpResponse(xml, content_type='application/xml') def sitemap_section_index(request, section, sitemaps): try: @@ -46,7 +46,7 @@ def sitemap_section_index(request, section, sitemaps): locations.append(location) xml = loader.render_to_string('sitemap_section_index.xml', { 'locations' : locations, }) - return HttpResponse(xml, mimetype='application/xml') + return HttpResponse(xml, content_type='application/xml') def sitemap(request, sitemaps, section=None, page=1): maps, urls = [], [] @@ -68,7 +68,7 @@ def sitemap(request, sitemaps, section=None, page=1): except PageNotAnInteger: raise Http404("No page '%s'" % page) xml = smart_str(loader.render_to_string('sitemap.xml', {'urlset': urls})) - return HttpResponse(xml, mimetype='application/xml') + return HttpResponse(xml, content_type='application/xml') class OsqaSitemap(Sitemap): limit = QUESTIONS_SITEMAP_LIMIT