Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Adds the possibility to have i18n urls in your sitemap

Project description

Add i18nsitemap to your INSTALLED_APPS

In your Sitemap class who supports i18n inherit from i18nsitemap.I18nSitemap instead from django.

Set i18n = True

That’s it. And there is no problem on using I18nSitemap on any Sitemap class, no needs to add or remove anything.

Here it follows an example

class BlogSitemap(I18nSitemap):
    changefreq = "never"
    priority = 0.5
    i18n = True

    def items(self):
        return Entry.objects.filter(is_draft=False)

    def lastmod(self, obj):
        return obj.pub_date

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-i18n-sitemap, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-i18n-sitemap-0.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page