~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to static_sitemap.py

  • Committer: Holger Rapp
  • Date: 2009-02-19 15:31:42 UTC
  • Revision ID: sirver@h566336-20090219153142-dc8xuabldnw5t395
Initial commit of new widelands homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.contrib.sitemaps import Sitemap
2
 
from django.urls import reverse
3
 
 
4
 
 
5
 
class StaticViewSitemap(Sitemap):
6
 
    priority = 0.5
7
 
    changefreq = 'yearly'
8
 
 
9
 
    def items(self):
10
 
        return ['mainpage', 'changelog']
11
 
 
12
 
    def location(self, item):
13
 
        return reverse(item)