diff options
Diffstat (limited to 'app/builder/views.py')
-rw-r--r-- | app/builder/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index 9e2bd08..0d69c60 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render_to_response from django.template import RequestContext from django.conf import settings -from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap, BuildPages +from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap, BuildPages, BuildBooks #from pages.models import PageGenerator options = { @@ -40,6 +40,9 @@ def do_build(request): elif section == 'homepage': context = {'message': 'Writing index to Disk'} BuildWriting().build_homepage() + elif section == 'buildbooks': + context = {'message': 'Writing Book Pages to Disk'} + BuildBooks().build() elif section == 'scrapeflickr': from photos.retriever import SyncFlickr f = SyncFlickr() |