diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-08 20:34:23 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-08 20:34:23 -0600 |
commit | 3f258e5594a9cc462646e8e30b83ba5580f9ef9d (patch) | |
tree | 1463fac886316ccc16024062b5d991ecd7bfaec8 /app/builder/base.py | |
parent | f0f3d2da7f538321b444035c23ef0ecf8c62bb7e (diff) |
cleaned up projects builder and templates, new CSS fonts
Diffstat (limited to 'app/builder/base.py')
-rw-r--r-- | app/builder/base.py | 12 |
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) |