diff options
Diffstat (limited to 'app/src/build.py')
-rw-r--r-- | app/src/build.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/build.py b/app/src/build.py index 3abd8ff..ac77d0b 100644 --- a/app/src/build.py +++ b/app/src/build.py @@ -33,12 +33,12 @@ class BuildSrc(Build): def build_topic_archive(self): for topic in Topic.objects.all(): - path = 'src/%s' % topic.slug + path = 'src/topic/' c = Context({ - 'object_list': Entry.objects.filter(topic__slug=topic.slug), + 'object_list': Entry.objects.filter(topics__slug=topic.slug), 'topic': topic, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL }) t = render_to_string('archives/src_home.html', c).encode('utf-8') - self.write_file(path, t) + self.write_file(path, t, 'html', topic.slug) |