summaryrefslogtreecommitdiff
path: root/app/pages/build.py
blob: 9545ce37a5589ef84e4278ac3a26b3efa07e049e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)