summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-03-09 12:08:36 -0400
committerluxagraf <sng@luxagraf.net>2015-03-09 12:08:36 -0400
commitc6582fed06064ad36154a1bd9af1b2f1a8179b51 (patch)
tree3f455007438f08213164a60f84129dd0a120288f /app/builder
parente8a3b0c7898eec7791ef97e550f950b1f0b75ba0 (diff)
parenta1404266bd7ff7e94a5d5090933d705ff7991d68 (diff)
Merge branch 'master' with work done on laptop
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 6701cf1..2db5cb3 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -67,6 +67,7 @@ class BuildWriting(Build):
self.build_country_archive_pages()
self.build_region_archive_pages()
self.build_homepage()
+ self.build_404()
self.writing_year_archives()
self.writing_month_archives()
@@ -146,6 +147,10 @@ class BuildWriting(Build):
t = render_to_string(template, c).encode('utf-8')
self.write_file('', t)
+ def build_404(self):
+ c = Context()
+ t = render_to_string('404.html', c).encode('utf-8')
+ self.write_file('', t, 'html', '404')
class BuildPhotos(Build):
def build(self):