From 294820d74fbfa6f54d689084d4fd689a2ad8a1e9 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 20 Jan 2011 18:56:55 -0500 Subject: moved template build files to bin folder and updated file paths throughout apps --- apps/blog/signals.py | 6 +++--- apps/build/base.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/blog/signals.py b/apps/blog/signals.py index c8f7f1e..798a78f 100644 --- a/apps/blog/signals.py +++ b/apps/blog/signals.py @@ -12,7 +12,7 @@ def update_recent(sender, instance, signal, *args, **kwargs): model = get_model('blog', 'entry') qs = {'object_list': model.objects.filter(status__exact=1).order_by('-pub_date')[1:4]} c = Context(qs) - t = render_to_string('includes/recent_entries_template.html',c) + t = render_to_string('bin/recent_entries.html',c) fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/recent_entries.html') file = open(fpath, 'w') file.write(t) @@ -24,13 +24,13 @@ def update_recent(sender, instance, signal, *args, **kwargs): rl = Region.objects.all() rtl = Route.objects.all() c = Context({'object_list':qs, 'country_list':cl,'region_list':rl, 'route_list':rtl}) - t = render_to_string('includes/map_entry_list_template.html',c) + t = render_to_string('bin/map_entry_list.html',c) fpath = '%s%s' %(settings.PROJ_ROOT,'media/js/mainmap.js') file = codecs.open(fpath, 'w','utf8') file.write(t) file.close() c = Context({'country_list':cl,'region_list':rl,'route_list':rtl}) - t = render_to_string('includes/map_sidebar_template.html',c) + t = render_to_string('bin/map_sidebar.html',c) fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/map_sidebar.html') file = codecs.open(fpath, 'w','utf8') file.write(t) diff --git a/apps/build/base.py b/apps/build/base.py index 6b806b6..462f910 100644 --- a/apps/build/base.py +++ b/apps/build/base.py @@ -68,7 +68,7 @@ class BuildWriting(Build): model = get_model('blog', 'entry') qs = {'object_list': model.objects.filter(status__exact=1).order_by('-pub_date')[1:4]} c = Context(qs) - t = render_to_string('includes/recent_entries_template.html',c) + t = render_to_string('bin/recent_entries.html',c) fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/recent_entries.html') self.write_file(fpath,t) @@ -132,11 +132,11 @@ class BuildMap(Build): rl = get_model('locations', 'Region').objects.all() rtl = get_model('locations', 'Route').objects.all() c = Context({'object_list':qs, 'country_list':cl,'region_list':rl, 'route_list':rtl, 'MEDIA_URL':settings.MEDIA_URL}) - t = render_to_string('includes/map_entry_list_template.html',c).encode('utf-8') + t = render_to_string('bin/map_entry_list.html',c).encode('utf-8') fpath = '%s%s' %(settings.PROJ_ROOT,'media/js/mainmap.js') self.write_file(fpath,t) c = Context({'country_list':cl,'region_list':rl,'route_list':rtl,'MEDIA_URL':settings.MEDIA_URL}) - t = render_to_string('includes/map_sidebar_template.html',c).encode('utf-8') + t = render_to_string('bin/map_sidebar.html',c).encode('utf-8') fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/map_sidebar.html') self.write_file(fpath,t) -- cgit v1.2.3-70-g09d2