diff options
Diffstat (limited to 'app/builder')
-rw-r--r-- | app/builder/base.py | 2 | ||||
-rw-r--r-- | app/builder/views.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index 67a259e..f18523f 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -14,7 +14,7 @@ class _FileWriter(object): """ Given a path and text object; write the page to disc """ - def __init__(self, path, text_object, ext='html', filename='index', base_path=settings.FLATFILES_ROOT): + def __init__(self, path, text_object, ext='html', filename='index', base_path=settings.NFLATFILES_ROOT): self.path = '%s%s' % (base_path, path) if not os.path.isdir(self.path): os.makedirs(self.path) diff --git a/app/builder/views.py b/app/builder/views.py index 1b537bd..1875a91 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -1,6 +1,6 @@ from django.shortcuts import render_to_response from django.template import RequestContext -from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap, BuildPages +from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap from src.build import builder as src_builder from jrnl.build import archive_builder, detail_builder, home_builder, rss_builder, amp_builder from resume.build import builder as resume_builder @@ -9,12 +9,12 @@ from birds.build import builder as bird_builder from photos.build import builder as photo_builder from figments.build import builder as figments_builder from notes.build import builder as notes_builder +from pages.build import builder as page_builder options = { 'writing': BuildWriting, 'photo_galleries': BuildPhotos, 'projects': BuildProjects, - 'pages': BuildPages, 'map': BuildMap, 'feed': BuildWritingFeed, 'sitemap': BuildSitemap, @@ -57,9 +57,9 @@ def do_build(request): elif section == 'notes': context = {'message': 'Writing notes to Disk'} notes_builder() - elif section == 'buildamp': - context = {'message': 'Writing detail amp pages to Disk'} - amp_builder() + elif section == 'pages': + context = {'message': 'Writing Pages to Disk'} + page_builder() else: options[section]().build() context = {'message': 'Writing %s to Disk' % section} |