Sitemap Guide
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 cms.sitemaps.CMSSitemap
will create a sitemap with all the published pages of your CMS.
Configuration
- add
django.contrib.sitemaps
to your project’sINSTALLED_APPS
setting- add
from cms.sitemaps import CMSSitemap
to the top of your mainurls.py
- add
url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}),
to yoururlpatterns
django.contrib.sitemaps
More information about django.contrib.sitemaps
can be found in the official Django documentation.
当前内容版权归 Django CMS 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Django CMS .