summaryrefslogtreecommitdiff
path: root/app/blog/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/blog/build.py')
-rw-r--r--app/blog/build.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/blog/build.py b/app/blog/build.py
new file mode 100644
index 0000000..392e991
--- /dev/null
+++ b/app/blog/build.py
@@ -0,0 +1,22 @@
+import os
+from builder.base import BuildNew
+from django.urls import reverse
+from . import models
+
+
+class BuildEssays(BuildNew):
+
+ def build(self):
+ self.build_list_view()
+ self.build_detail_view()
+ # These are the unique classes for this model:
+ #self.build_feed("src:feed")
+
+ def build_list_view(self):
+ response = self.client.get('/essays/')
+ self.write_file('essays/', response.content)
+
+
+def essaybuilder():
+ j = BuildEssays("essays", "essay")
+ j.build()