summaryrefslogtreecommitdiff
path: root/app/builder/views.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/builder/views.py
initial commit
Diffstat (limited to 'app/builder/views.py')
-rw-r--r--app/builder/views.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/app/builder/views.py b/app/builder/views.py
new file mode 100644
index 0000000..af9bfaf
--- /dev/null
+++ b/app/builder/views.py
@@ -0,0 +1,37 @@
+from django.shortcuts import render
+from django.template import RequestContext
+#from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPhotos, BuildProjects, BuildSitemap
+#from jrnl.build import archive_builder, detail_builder, home_builder, rss_builder, map_builder
+from pages.build import BuildPages, BuildHome
+from posts.build import BuildJrnl, BuildFieldNotes, BuildSrc, BuildGuide
+#from lttr.build import lttr_builder
+
+def do_build(request):
+ section = request.GET.get('id', '')
+ context = {}
+ if section == 'builddetails':
+ context = {'message': 'Writing Jrnl Permalinks to Disk'}
+ p = BuildJrnl("posts", "post")
+ p.build_latest()
+ p.build_detail_view()
+ elif section == 'writingarchives':
+ context = {'message': 'Writing Jrnl Archives to Disk'}
+ BuildJrnl("posts", "post").build_arc()
+ elif section == 'buildrss':
+ context = {'message': 'Writing RSS to Disk'}
+ BuildJrnl("posts", "post").build_feed("jrnl:feed")
+ elif section == 'homepage':
+ context = {'message': 'Writing index to Disk'}
+ BuildHome("pages", "homepage").build()
+ elif section == 'pages':
+ context = {'message': 'Writing Pages to Disk'}
+ BuildPages("pages", "page", 'luxagraf.net').build()
+ elif section == 'lttr_archive':
+ context = {'message': 'Writing newsletter archives to Disk'}
+ #lttr_builder()
+ return render(request, 'admin/message.html', context)
+
+
+
+
+