diff options
Diffstat (limited to 'app')
-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/',) |