summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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):