summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2013-04-24 11:20:41 -0400
committerluxagraf <sng@luxagraf.net>2013-04-24 11:20:41 -0400
commit1647644fbf4253d3ddd80bc8be1c09c1e4709930 (patch)
tree7fb3475379c0e8961858325cf42bd6e39dab220c /app/builder
parent955cafdd72da3ced428768c053b7ff6b30abf785 (diff)
moved rss feed and got rid of Feedburner
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py18
-rw-r--r--app/builder/views.py2
2 files changed, 2 insertions, 18 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 9d219d4..cdd919f 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -217,7 +217,7 @@ class BuildWritingFeed(Build):
qs = get_model('blog', 'entry').objects.filter(status__exact=1).order_by('-pub_date')[:20]
c = Context({'object_list':qs,'SITE_URL':settings.SITE_URL})
t = render_to_string('feed.xml',c).encode('utf-8')
- fpath = '%s' %('feed/',)
+ fpath = '%s' %('rss/',)
self.write_file(fpath,t,'xml')
class BuildMap(Build):
@@ -257,21 +257,5 @@ class BuildContact(Build):
fpath = '%sindex.html' %(path)
self.write_file(fpath,str(response.content))
-class BuildAbout(Build):
- def build(self):
- model = get_model('chunks', 'Chunk')
- qs = model.objects.filter(key__in=['about_top','about_middle','about_bottom'])
- c = Context({
- 'object_list': qs,
- 'IMAGES_URL' : settings.BAKED_IMAGES_URL,
- 'MEDIA_URL':settings.BAKED_MEDIA_URL
- })
- t = render_to_string('details/about.html',c).encode('utf-8')
- path = '%sabout/' %(settings.BAKED_ROOT)
- if not os.path.isdir(path):
- os.makedirs(path)
- fpath = '%sindex.html' %(path)
- self.write_file(fpath,t)
-
#class BuildCodeSite(Build):
diff --git a/app/builder/views.py b/app/builder/views.py
index f7a4392..f266cb8 100644
--- a/app/builder/views.py
+++ b/app/builder/views.py
@@ -4,7 +4,7 @@ from django.shortcuts import render_to_response,get_object_or_404,redirect
from django.template import RequestContext
-from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPages, BuildPhotos,BuildAbout,BuildProjects,BuildSitemap,BuildContact
+from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPages, BuildPhotos,BuildProjects,BuildSitemap,BuildContact
def do_build(request):
section = request.GET.get('id', '')