diff options
Diffstat (limited to 'stackbin.py')
-rwxr-xr-x | stackbin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stackbin.py b/stackbin.py index aac3f49..4c0d164 100755 --- a/stackbin.py +++ b/stackbin.py @@ -276,6 +276,13 @@ def admin(): all_pastes = get_all_pastes() return render_template('admin.html', pastes = all_pastes) +@app.route('/favicon.ico') +def favicon(): + try: + return redirect(url_for('static', filename='favicon.ico')) + except: + abort(404) + if __name__ == "__main__": manager.add_command('runserver', Server(host=app.config["APP_HOST"], port=app.config["APP_PORT"])) app.run() |