Пример #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()