From 9e9b876365e428c4447b41f48b4f39b66e186cdd Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 8 Feb 2019 22:44:25 -0600 Subject: fixed conflict between pages and essay build --- app/essays/build.py | 2 +- app/pages/build.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'app') 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) -- cgit v1.2.3-70-g09d2