summaryrefslogtreecommitdiff
path: root/apps/build/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/build/base.py')
-rw-r--r--apps/build/base.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/build/base.py b/apps/build/base.py
index 6021532..afcc8f8 100644
--- a/apps/build/base.py
+++ b/apps/build/base.py
@@ -14,7 +14,13 @@ class Build():
file = open(path, 'w')
file.write(object)
file.close()
-
+
+class BuildSitemap(Build):
+ def build(self):
+ c = Client()
+ response = c.get('/sitemap.xml')
+ fpath = '%ssitemap.xml' %(settings.BAKED_ROOT)
+ self.write_file(fpath,str(response.content))
class BuildWriting(Build):
@@ -230,5 +236,3 @@ class BuildProjects(Build):
fpath = '%s%s.json' %(path, park.id)
self.write_file(fpath,json)
-
- \ No newline at end of file