Re: Additional arguments for url lookup in sitemap index

2020-05-26 Thread Adam Johnson
Oh I see. I think your sitemap structure is quite different to what Django's sitemaps index is intended for. I think it's probably better that you create your own index view based copy-pasting the built-in one, rather than adding extra parameters to it. It's not much code, and Django can't be

Re: Additional arguments for url lookup in sitemap index

2020-05-26 Thread Sandro Covo
Sure, my urls look like this: urlpatterns = ( path('/', views.page_detail, name="page"), path('/sitemap.xml', cache_page(60*60)(views.sitemap_view), name="sitemap-index"), ) And i have this view for the sitemap_view, that creates the sitemap for each page under the path of the

Re: Additional arguments for url lookup in sitemap index

2020-05-26 Thread Adam Johnson
> > I'm trying to add sitemaps on a per object base to my project. Can you explain this a little more? I don't follow what sitemap structure you're pursuing that's different to the default, nor why. On Tue, 26 May 2020 at 09:24, Sandro Covo wrote: > Hello, > > I'm trying to add sitemaps on a