diff options
author | luxagraf <sng@luxagraf.net> | 2012-10-21 15:35:00 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-10-21 15:35:00 +0000 |
commit | 665cc2293083879dbcbc6a56d174aca67f632767 (patch) | |
tree | 88b2bfcccaf85a7f56541960550a27d44c07a1c5 /app/builder/base.py | |
parent | 5f9a90eb72ad0050f18cbbfee1092d06efe9ed8d (diff) |
fixed a bug in the RSS feed builder and hid the guides link
Diffstat (limited to 'app/builder/base.py')
-rw-r--r-- | app/builder/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index bfbbf72..7d57c5e 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -44,7 +44,7 @@ class Build(): path = '%s%s/' %(base_path, page+1) url = '/%s%s/' %(base_path, str(page+1)) page_url = base_path+'%d/' - response = c.post(url, {'page_url': page_url, 'page': int(page)}) + response = c.post(url, {'page_url': page_url, 'page': int(page), 'MEDIA_URL':settings.BAKED_MEDIA_URL}) if page == 0: self.write_file(base_path,str(response.content)) self.write_file(path,str(response.content)) @@ -199,7 +199,7 @@ class BuildSitemap(Build): class BuildWritingFeed(Build): def build(self): - qs = Entry.objects.filter(status__exact=1).order_by('-pub_date')[:20] + qs = get_model('blog', 'entry').objects.filter(status__exact=1).order_by('-pub_date')[:20] c = Context({'object_list':qs,'SITE_URL':settings.SITE_URL}) t = render_to_string('feed.xml',c).encode('utf-8') fpath = '%s' %('feed/',) |