From 1e00f04d0b91033ca96882b9c0c4a313a4472e0b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 21 Jul 2018 22:50:49 +0200 Subject: [PATCH] Peccato, ci speravo --- templates/{errors => }/400.html | 2 +- templates/{errors => }/403.html | 2 +- templates/{errors => }/500.html | 2 +- webserver.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename templates/{errors => }/400.html (89%) rename templates/{errors => }/403.html (88%) rename templates/{errors => }/500.html (93%) diff --git a/templates/errors/400.html b/templates/400.html similarity index 89% rename from templates/errors/400.html rename to templates/400.html index a9ef2d57..d04d82c6 100644 --- a/templates/errors/400.html +++ b/templates/400.html @@ -1,4 +1,4 @@ -{% extends '../base.html' %} +{% extends 'base.html' %} {% block pagetitle %} Bad Request diff --git a/templates/errors/403.html b/templates/403.html similarity index 88% rename from templates/errors/403.html rename to templates/403.html index aea894cd..bfc94b22 100644 --- a/templates/errors/403.html +++ b/templates/403.html @@ -1,4 +1,4 @@ -{% extends '../base.html' %} +{% extends 'base.html' %} {% block pagetitle %} Forbidden diff --git a/templates/errors/500.html b/templates/500.html similarity index 93% rename from templates/errors/500.html rename to templates/500.html index 53c6c2b7..7e1a710d 100644 --- a/templates/errors/500.html +++ b/templates/500.html @@ -1,4 +1,4 @@ -{% extends '../base.html' %} +{% extends 'base.html' %} {% block pagetitle %} Internal Server Error diff --git a/webserver.py b/webserver.py index a39f3490..b743b54a 100644 --- a/webserver.py +++ b/webserver.py @@ -22,7 +22,7 @@ telegram_bot = telegram.Bot(config["Telegram"]["bot_token"]) @app.errorhandler(400) def error_400(_=None): - return render_template("errors/400.html", config=config) + return render_template("400.html", config=config) @app.route("/400") @@ -32,7 +32,7 @@ def page_400(): @app.errorhandler(403) def error_403(_=None): - return render_template("errors/403.html", config=config) + return render_template("403.html", config=config) @app.route("/403") @@ -42,7 +42,7 @@ def page_403(): @app.errorhandler(500) def error_500(_=None): - return render_template("errors/500.html", config=config) + return render_template("500.html", config=config) @app.route("/500")