diff options
Diffstat (limited to 'app/builder')
-rw-r--r-- | app/builder/base.py | 6 | ||||
-rw-r--r-- | app/builder/views.py | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index d9c2288..573cf6b 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -205,7 +205,11 @@ class BuildWriting(Build): ''' qs = self.get_model_querset() for entry in qs: - c = Context({'object': entry, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL}) + c = { + 'object': entry, + 'MEDIA_URL': settings.BAKED_MEDIA_URL, + 'IMAGES_URL': settings.BAKED_IMAGES_URL + } t = render_to_string('details/entry.html', c).encode('utf-8') path = '/jrnl/%s/' %(entry.pub_date.strftime("%Y/%m").lower()) slug = '%s' %(entry.slug) diff --git a/app/builder/views.py b/app/builder/views.py index 55a037c..efe5eb9 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -65,7 +65,7 @@ def do_build(request): else: options[section]().build() context = {'message': 'Writing %s to Disk' % section} - return render_to_response('admin/message.html', context, context_instance=RequestContext(request)) + return render_to_response('admin/message.html', context) """ |