diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/builder/base.py | 18 | ||||
-rw-r--r-- | app/builder/views.py | 2 |
2 files changed, 2 insertions, 18 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index 9d219d4..cdd919f 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -217,7 +217,7 @@ class BuildWritingFeed(Build): 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/',) + fpath = '%s' %('rss/',) self.write_file(fpath,t,'xml') class BuildMap(Build): @@ -257,21 +257,5 @@ class BuildContact(Build): fpath = '%sindex.html' %(path) self.write_file(fpath,str(response.content)) -class BuildAbout(Build): - def build(self): - model = get_model('chunks', 'Chunk') - qs = model.objects.filter(key__in=['about_top','about_middle','about_bottom']) - c = Context({ - 'object_list': qs, - 'IMAGES_URL' : settings.BAKED_IMAGES_URL, - 'MEDIA_URL':settings.BAKED_MEDIA_URL - }) - t = render_to_string('details/about.html',c).encode('utf-8') - path = '%sabout/' %(settings.BAKED_ROOT) - if not os.path.isdir(path): - os.makedirs(path) - fpath = '%sindex.html' %(path) - self.write_file(fpath,t) - #class BuildCodeSite(Build): diff --git a/app/builder/views.py b/app/builder/views.py index f7a4392..f266cb8 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -4,7 +4,7 @@ from django.shortcuts import render_to_response,get_object_or_404,redirect from django.template import RequestContext -from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPages, BuildPhotos,BuildAbout,BuildProjects,BuildSitemap,BuildContact +from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPages, BuildPhotos,BuildProjects,BuildSitemap,BuildContact def do_build(request): section = request.GET.get('id', '') |