summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-08-13 21:44:16 -0400
committerTim Graham <timograham@gmail.com>2014-08-13 21:45:32 -0400
commit123f490ae35a71e15de4d14c15f88fa20f0f6654 (patch)
treee45b91b35e53f11a39de9d6691dff21a3e1744af /docs
parentdb1cfbc1a9d8bafdf14ac2cda321b15f9a77e3d2 (diff)
[1.6.x] Corrected content_type parameter name in sitemap docs.
mimetype was deprecated in 1.5 per 11ec0253ab4cc926ab9e77619132cb398231ac33. Backport of a7443c24a3 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/sitemaps.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index 8c9c18d3a5..1c182d508b 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -49,7 +49,7 @@ loader can find the default templates.)
Initialization
==============
-.. function:: views.sitemap(request, sitemaps, section=None, template_name='sitemap.xml', mimetype='application/xml')
+.. function:: views.sitemap(request, sitemaps, section=None, template_name='sitemap.xml', content_type='application/xml')
To activate sitemap generation on your Django site, add this line to your
:doc:`URLconf </topics/http/urls>`::
@@ -323,7 +323,7 @@ the sitemap. For example::
Creating a sitemap index
========================
-.. function:: views.index(request, sitemaps, template_name='sitemap_index.xml', mimetype='application/xml', sitemap_url_name='django.contrib.sitemaps.views.sitemap')
+.. function:: views.index(request, sitemaps, template_name='sitemap_index.xml', content_type='application/xml', sitemap_url_name='django.contrib.sitemaps.views.sitemap')
The sitemap framework also has the ability to create a sitemap index that
references individual sitemap files, one per each section defined in your