Python django.contrib.sitemaps.Sitemap() Examples

The following are code examples for showing how to use django.contrib.sitemaps.Sitemap(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: django-angularjs-blog   Author: bluedazzle   File: sitemaps.py    BSD 2-Clause "Simplified" License 5 votes vote down vote up
def location(self, item):
        return r'/know/'


# class StaticViewSitemap(Sitemap):
    # priority = 0.5
    # changefreq = 'daily'
    #
    # def items(self):
    #     return ['code', 'me']
    #
    # def location(self, item):
    #     return reverse(item)