pycharm call js file reference

Static files, there will be no change in the document, such as style css files, js files, jquery file, these same documents need to put a directory, when the browser requests a request to the specified directory on the line.

So how do we cited in pycharm static file folder below it, I also spent a lot of effort to find a way to most Guarantee. Here I will share to you.

<link rel="stylesheet" href="{{ url_for('static',filename='css/music-min.css') }}">
<script type="text/JavaScript" src="{{ url_for('static',filename='music-min.js') }}"></script>
Published 45 original articles · won praise 96 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_40831778/article/details/104418882