擅长:python、mysql、java
<p>你可以使用一个蓝图和它自己的静态目录
<a href="http://flask.pocoo.org/docs/blueprints/" rel="noreferrer">http://flask.pocoo.org/docs/blueprints/</a></p>
<p>蓝图</p>
<pre><code>blueprint = Blueprint('site', __name__, static_url_path='/static/site', static_folder='path/to/files')
app.register_blueprint(blueprint)
</code></pre>
<p>模板</p>
<pre><code>{{ url_for('site.static', filename='filename') }}
</code></pre>