2. Sitemap Guide

2.1. Sitemap

Sitemaps are XML files used by Google to index your website by using their Webmaster Tools and telling them the location of your sitemap.

The CMSSitemap will create a sitemap with all the published pages of your CMS

2.2. Configuration

  • Add django.contrib.sitemaps to your project’s :setting:`django:INSTALLED_APPS` setting.
  • Add from cms.sitemaps import CMSSitemap to the top of your main urls.py.
  • Add url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}), to your urlpatterns.

2.3. django.contrib.sitemaps

More information about django.contrib.sitemaps can be found in the official Django documentation.

Project Versions

Table Of Contents

Previous topic

1. Internationalization

Next topic

3. Template Tags

This Page