summaryrefslogtreecommitdiff
path: root/app/builder/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder/base.py')
-rw-r--r--app/builder/base.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 1b441a0..b41bbba 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -322,8 +322,8 @@ class BuildProjects(Build):
def build_project_archive(self):
qs = apps.get_model('projects', 'Project').objects.filter(status__exact=1).order_by('-pub_date')
- c = Context({'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL,
- 'IMAGES_URL': settings.BAKED_IMAGES_URL})
+ c = {'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL,
+ 'IMAGES_URL': settings.BAKED_IMAGES_URL}
t = render_to_string('archives/projects.html', c).encode('utf-8')
self.write_file('projects/', t)
@@ -335,11 +335,11 @@ class BuildProjects(Build):
qs = model.objects.filter(visited__exact=True).order_by("-date_visited_begin")
else:
qs = model.objects.filter(status__exact=1)
- c = Context({
+ c = {
'object_list': qs,
'MEDIA_URL': settings.BAKED_MEDIA_URL,
'IMAGES_URL': settings.BAKED_IMAGES_URL
- })
+ }
t = render_to_string('details/%s.html' % (proj['slug'].split("/")[1]), c).encode('utf-8')
path = 'projects/%s/' % (proj['slug'].split("/")[1])
self.write_file(path, t)
@@ -352,11 +352,11 @@ class BuildProjects(Build):
def build_gifs(self):
qs = apps.get_model('projects', 'AnimatedGif').objects.all()
for gif in qs:
- c = Context({
+ c = {
'object': gif,
'MEDIA_URL': settings.BAKED_MEDIA_URL,
'IMAGES_URL': settings.BAKED_IMAGES_URL
- })
+ }
t = render_to_string('details/gifs.html', c).encode('utf-8')
path = 'projects/gifs/%s/' % (gif.slug)
self.write_file(path, t)