This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - 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
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-i18n-sitemap-0.1.tar.gz (2.3 kB) Copy SHA256 Checksum SHA256 Source Jun 4, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting