diff options
author | luxagraf <sng@luxagraf.net> | 2015-12-15 20:44:31 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-12-15 20:44:31 -0500 |
commit | 3cb15bd4317dbe634b3d344fc3a3ac5d9310c47c (patch) | |
tree | 1e894306a767cdd74090ed4745869ac677d57182 /app/builder | |
parent | 7c467958611eadf05f69268818f3d6eb45573516 (diff) |
added admin button to build new style galleries
Diffstat (limited to 'app/builder')
-rw-r--r-- | app/builder/views.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index fe68816..ffe70ca 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -1,10 +1,11 @@ from django.shortcuts import render_to_response from django.template import RequestContext from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap, BuildPages -from src.build import builder as src_build +from src.build import builder as src_builder from jrnl.build import BuildJrnl, build_arc, build_detail from resume.build import builder as resume_builder from books.build import builder as book_builder +from photos.build import builder as photo_builder options = { 'writing': BuildWriting, @@ -40,7 +41,10 @@ def do_build(request): book_builder() elif section == 'src': context = {'message': 'Writing src section to Disk'} - src_build() + src_builder() + elif section == 'luxphotos': + context = {'message': 'Writing galleries to Disk'} + photo_builder() else: options[section]().build() context = {'message': 'Writing %s to Disk' % section} |