diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-13 21:44:16 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-13 21:45:28 -0400 |
| commit | 46edcd621e3092bcbf5817f98d7ff2ae86266f0e (patch) | |
| tree | 45a9472d6e51b24e16c246f024580680b99ab796 /docs/ref | |
| parent | d38007e86d8c9248f1e38d8e3dcd21b0f0a2d95f (diff) | |
[1.7.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/ref')
| -rw-r--r-- | docs/ref/contrib/sitemaps.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index 3b27798bc4..54dfcd5c40 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>`:: @@ -341,7 +341,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 |
