Flask basics: lose the favicon 404

If the fact that the Flask development server cant find your favicon annoys you shove your favicon into your static folder and do this: [code lang=”py”] @app.route("/favicon.ico") def favicon(): return(url_for(‘static’,filename=’favicon.ico’) [/code] NOTE: this is one of several ways of getting rid of that particular error and is the one I’m using today. I’ll add more […]