diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-08 22:44:25 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-08 22:44:25 -0600 |
commit | 9e9b876365e428c4447b41f48b4f39b66e186cdd (patch) | |
tree | c682a4c95f3306ec0d912ce8558356fee9db5388 | |
parent | 1d21cb9c914b21cceb83b1e8b3cbacacc35840d0 (diff) |
fixed conflict between pages and essay build
-rw-r--r-- | app/essays/build.py | 2 | ||||
-rw-r--r-- | app/pages/build.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/essays/build.py b/app/essays/build.py index fc08652..6f2270f 100644 --- a/app/essays/build.py +++ b/app/essays/build.py @@ -14,7 +14,7 @@ class BuildEssays(BuildNew): def build_list_view(self): response = self.client.get('/essays/') - self.write_file('', response.content, filename='essays') + self.write_file('essays', response.content) def essaybuilder(): diff --git a/app/pages/build.py b/app/pages/build.py index be4369e..b1bd53d 100644 --- a/app/pages/build.py +++ b/app/pages/build.py @@ -9,14 +9,15 @@ from builder.base import BuildNew class BuildPages(BuildNew): def build(self): self.build_detail_view() - self.build_essays() print("building pages") + ''' def build_essays(self): qs = self.model.objects.filter(path="essays", build=True) c = {'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL} t = render_to_string('archives/essays.html', c).encode('utf-8') self.write_file('essays/', t) + ''' def get_model_queryset(self): return self.model.objects.filter(build=True) |