# custom static file folder
app = Flask(self, __name__, static_folder='/app/static')
# http://xxx/static/favicon.ico
favicon_path = url_for('static', filename='favicon')
<link ref="shortcut icon" href="/static/favicon.ico" />
# custom static file folder
app = Flask(self, __name__, static_folder='/app/static')
# http://xxx/static/favicon.ico
favicon_path = url_for('static', filename='favicon')
<link ref="shortcut icon" href="/static/favicon.ico" />
本文标题:Flask 静态资源
本文链接:https://www.haomeiwen.com/subject/nppzgftx.html
网友评论