Связывание JavaScript с Flask html
<script src="{{url_for('static', filename='somejavascriptfile.js')}}"></script>
Combative Camel
<script src="{{url_for('static', filename='somejavascriptfile.js')}}"></script>