1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-27 13:05:38 +00:00
Ismael Carnales 48682189b4 using a modified version of django simple blog
--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40572
2008-12-29 16:50:49 +00:00

13 lines
282 B
Python

from django.contrib.sitemaps import Sitemap
from scrapyorg.blog.models import Post
class BlogSitemap(Sitemap):
changefreq = "never"
priority = 0.5
def items(self):
return Post.objects.published()
def lastmod(self, obj):
return obj.publish