summaryrefslogtreecommitdiff
path: root/app/pages/build.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-08-14 09:39:08 -0400
committerluxagraf <sng@luxagraf.net>2021-08-14 09:39:08 -0400
commit9327e01c60b114286f5a142552aae60843029a48 (patch)
tree7f353f4299d50013c3b90f7b749fc6ab211b32d4 /app/pages/build.py
parent0feb366b10cf422f12d18fa753e5d876120f4195 (diff)
initial commit
Diffstat (limited to 'app/pages/build.py')
-rw-r--r--app/pages/build.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/pages/build.py b/app/pages/build.py
new file mode 100644
index 0000000..9545ce3
--- /dev/null
+++ b/app/pages/build.py
@@ -0,0 +1,25 @@
+from django.template.loader import render_to_string
+from django.template import Context
+from django.urls import reverse
+from django.conf import settings
+
+from builder.base import BuildNew
+
+
+class BuildPages(BuildNew):
+
+ def build(self):
+ self.build_detail_view()
+
+ def get_model_queryset(self):
+ return self.model.objects.filter(build=True,site=self.site)
+
+
+class BuildHome(BuildNew):
+
+ def get_model_queryset(self):
+ return self.model.objects.get(pk=1)
+
+ def build(self):
+ response = self.client.get('/')
+ self.write_file('/', response.content)