Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.464 kb
# -*- coding: utf-8 -*-
from django.contrib.sitemaps import Sitemap
class CMSSitemap(Sitemap):
changefreq = "monthly"
priority = 0.5
def items(self):
from cms.utils.moderator import get_page_queryset
page_queryset = get_page_queryset(None)
all_pages = page_queryset.published().filter(login_required=False)
return all_pages
def lastmod(self, page):
return page.publication_date or page.creation_date
Jump to Line
Something went wrong with that request. Please try again.