diff options
author | luxagraf <sng@luxagraf.net> | 2011-01-20 18:56:55 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2011-01-20 18:56:55 -0500 |
commit | 294820d74fbfa6f54d689084d4fd689a2ad8a1e9 (patch) | |
tree | a3a163217cf09d277f9451ac9e635d8b787f9594 /apps | |
parent | 6dca31fffb9dd52014a85e01c30a142b933d86ef (diff) |
moved template build files to bin folder and updated file paths throughout apps
Diffstat (limited to 'apps')
-rw-r--r-- | apps/blog/signals.py | 6 | ||||
-rw-r--r-- | apps/build/base.py | 6 |
2 files changed, 6 insertions, 6 deletions
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) |