diff options
Diffstat (limited to 'app/notes/build.py')
-rw-r--r-- | app/notes/build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/notes/build.py b/app/notes/build.py index 884c114..4923baf 100644 --- a/app/notes/build.py +++ b/app/notes/build.py @@ -21,13 +21,13 @@ class BuildNotes(Build): for entry in self.queryset(): c = Context({'object': entry, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL, 'SITE_URL':settings.SITE_URL}) t = render_to_string('details/note.html', c).encode('utf-8') - path = 'notes/%s/' % (entry.date_created.strftime("%Y/%m").lower()) + path = 'field-notes/%s/' % (entry.date_created.strftime("%Y/%m").lower()) self.write_file(path, t, 'html', entry.slug) s = render_to_string('details/note.txt', c).encode('utf-8') self.write_file(path, s, 'txt', entry.slug) def build_archive(self): - path = 'notes/' + path = 'field-notes/' c = Context({ 'object_list': self.queryset(), 'MEDIA_URL': settings.BAKED_MEDIA_URL, @@ -47,7 +47,7 @@ class BuildNotes(Build): 'object_list': qs }) t = render_to_string('archives/notes_date.html', c).encode('utf-8') - fpath = 'notes/%s/' % (year) + fpath = 'field-notes/%s/' % (year) self.write_file(fpath, t) def build_archive_month(self): @@ -63,5 +63,5 @@ class BuildNotes(Build): 'object_list': qs, }) t = render_to_string('archives/notes_date.html', c).encode('utf-8') - fpath = 'notes/%s/%s/' % (year, month) + fpath = 'field-notes/%s/%s/' % (year, month) self.write_file(fpath, t) |