diff options
author | luxagraf <sng@luxagraf.net> | 2019-07-04 08:17:40 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-07-04 08:17:40 -0500 |
commit | 9251b1c1149b3d6abd779ab8b8c9e709ec09bdbf (patch) | |
tree | 770154a25806cefbf5c75bd9e55757a6cbbcc749 /app/guides/build.py | |
parent | 829cf6908dff98915c9c56a8cfa191f25c41bd98 (diff) |
added guides to main admin
Diffstat (limited to 'app/guides/build.py')
-rw-r--r-- | app/guides/build.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/guides/build.py b/app/guides/build.py new file mode 100644 index 0000000..392e991 --- /dev/null +++ b/app/guides/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() |