对于Flask,通常应将静态文件保留在“ static”文件夹下,然后使用url_for函数。假设你的项目名为“ myproject”,并以你的示例为例,它应类似于:
myproject/ app.py templates/ static/ css/ images/ icons/ resultset_previous.png
然后,你可以在模板中调用
<img src= {{ url_for('static', filename = 'css/images/icons/resultset_previous.png') }} width="16" height="16" alt="previous" title="Previous" border="0">


