diff options
author | luxagraf <sng@luxagraf.net> | 2015-03-09 11:24:20 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-03-09 11:24:20 -0400 |
commit | d0275c466684ef73fe7ce90e2b926fa150732b25 (patch) | |
tree | eb9b315a1eaa1f17828326ec6d8b68e9ba37c4a8 /app | |
parent | b8b640ae95b5feda4a2c6d873ae1ce9fda2b36ac (diff) |
added 404 page to build process, currently has to be called by hand
Diffstat (limited to 'app')
-rw-r--r-- | app/builder/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index a706261..5a479f3 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,9 @@ class BuildWriting(Build): t = render_to_string(template, c).encode('utf-8') self.write_file('', t) + def build_404(self): + t = render_to_string('404.html', c).encode('utf-8') + self.write_file('', t) class BuildPhotos(Build): def build(self): |