[Fixed]-How do I split sitemaps with Django (programatically)?

1👍

Use sitemap limit:

from django.contrib.sitemaps import Sitemap

class LimitSitemap(Sitemap):
    limit = 500

class BlogSitemap(LimitSitemap):
    def items(self):
        return Entry.objects.all()

Leave a comment