﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10909	Allow use of the Sitemaps Framework without requiring the sites contrib application	QingFeng	nobody	"Django Sitemaps Framework does not allow the use of the Domain Settings Site


In settings.py add a variable DOMAIN

{{{
DOMAIN = 'www.example.com'
}}}

example:
location of the place, do not rely on the domain name Site Settings
{{{
class KhufuSitemap(Sitemap):
    changefreq = ""never""
    priority = 0.5

    def items(self):
        return [obj,obj,obj]

    def location(self,obj):
        return ""/v/%s/"" % obj[""kid""]

    def lastmod(self, obj):
        return datetime.strptime(obj[""savedate""],'%Y-%m-%d')

}}}"		closed	Contrib apps	dev		fixed		qingfeng@…	Accepted	1	0	0	0	0	0
