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 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.
当前内容版权归 Django CMS 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Django CMS .