Given an exemplary directory structure that looks like
app/static/css/bootstrap.min.css app/static/js/bootstrap.min.js app/templates/test_page.html app/views run_server
You can set the jar static_url_path when creating the application object
app = Flask(__name__, static_url_path='/static')
and then in test_page.html you can have something similar to this
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet"> I'm an html body <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
source share