示例#1
0
 def handle_noargs(self, **options):
     translation.activate(conf.LANGUAGE)
     generator = SitemapGenerator()
     generator.write_index()
     translation.deactivate()
示例#2
0
 def run(self, **kwargs):
     translation.activate(conf.LANGUAGE)
     generator = SitemapGenerator()
     generator.write_index()
     translation.deactivate()