I have the following Hello world
code for my Heroku app. Also in my project's root folder, I have a favicon.ico
.
import os
from flask import Flask
app = Flask(__name__)
html = '''
<!doctype html>
<html>
<head>
<link rel="shortcut icon" href="/favicon.ico">
<title>Hello world!</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
'''
@app.route('/')
def index():
return html
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
When I browse to my app, I don't see a favicon
. Also, when I check heroku logs
, I get the following 404
line:
2012-02-14T05:23:29+00:00 app[web.1]: <ip.ad.dr.es> - - [14/Feb/2012 05:23:29] "GET /favicon.ico HTTP/1.1" 404 -