From 978f1a4999937a56bd3861a219bb2d9082ba5de6 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 11 Apr 2013 21:47:56 +0200 Subject: 404 page in jinja --- app/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app') 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") -- cgit v1.2.3-54-g00ecf