From 3c30e1ac116f7dae185dbc69bf4fbc2fbafdd745 Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Sun, 27 Dec 2015 18:46:21 +0100 Subject: [PATCH] To avoid them spamming the log and being served correctly --- run.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/run.py b/run.py index 541e80d..405f328 100755 --- a/run.py +++ b/run.py @@ -120,6 +120,17 @@ def privacy(): def faq(): return render_template('faq.html', page=config["SITE_DATA"]) +# Static resources that browsers spam for +@app.route('/favicon.ico') +def favicon(): + return send_from_directory('static', 'favicon.ico') +@app.route('/apple-touch-icon.png') +def favicon(): + return send_from_directory('static', 'logo/152px.png') +@app.route('/apple-touch-icon.png') +def favicon(): + return send_from_directory('static', 'robots.txt') + # Custom 404 @app.errorhandler(404) def page_not_found(e):