X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/4bbb2156110a75e84ef95ee28ba31490d986b870..HEAD:/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