summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-04-11 21:47:56 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-04-11 21:47:56 +0200
commit978f1a4999937a56bd3861a219bb2d9082ba5de6 (patch)
tree69a55977f09000e1c867a2c253c7018050951e72 /app
parent0567318344330295512176569a84afc9748d79c5 (diff)
downloadkosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.tar.gz
kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.tar.bz2
kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.zip
404 page in jinja
Diffstat (limited to 'app')
-rw-r--r--app/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views.py b/app/views.py
index 7450946..accbeb5 100644
--- a/app/views.py
+++ b/app/views.py
@@ -18,9 +18,9 @@ def static_url(s):
return url_for("static", filename=s)
-#@app.errorhandler(404)
-#def page_not_found (error):
-# print request.path
+@app.errorhandler(404)
+def page_not_found (error):
+ return render_template("404.jinja", page = request.path), 404
@app.route("/")
@app.route("/index")