summaryrefslogtreecommitdiff
path: root/app/blog/build.py
blob: 10553a6e69a24769db32a9c618a015cf4d616b9d (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
26
27
28
29
30
31
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 build_homepage(self):
        response = self.client.get('/')
        self.write_file('', response.content)


def essaybuilder():
    j = BuildEssays("blog", "Entry")
    j.build()


def homebuilder():
    j = BuildEssays("blog", "Entry")
    j.build_homepage()