Put the scripts directory in the static subdirectory, and then use:
<link href="{{ url_for('static', filename='scripts/bootstrap/dist/css/bootstrap.css') }}" rel="stylesheet">
The template is here:
{{ url_for('static', filename='path/inside/the/static/directory') }}
which will be replaced with the correct URL for static resources, even if you included all these files on another hosting (for example, CDN).
Martijn pieters
source share