Thanks
Le jeudi 18 septembre 2014 01:50:13 UTC+2, PRyan a écrit :
>
> Hello,
> I have business objects which have multiple urls each. The sitemap for the
> business objects them self work and I get the following:
> /store/
>
> However, each business has sites specific to it. So I need sitemaps to
Something like this might work:
class MySitemap(sitemaps.Sitemap):
def items(self):
urls = []
for obj in Store.objects.all():
urls.append((obj, ''))
urls.append((obj, 'about'))
urls.append((obj, 'contact'))
return urls
def locati
Hello,
I have business objects which have multiple urls each. The sitemap for the
business objects them self work and I get the following:
/store/
However, each business has sites specific to it. So I need sitemaps to
create:
/store/
/store//contact
/store//about
Is there a way I can get Sitema
3 matches
Mail list logo