Couldn't Apply Javascript To My Template In Flask Despite Having It In The Static Dir. How Do I Resolve That In The Code Below?
I have a flask project in which I'm trying to make a tree structure but I don't think the JS is being applied to my tree.html as it couldn't expand the options. Below is the code t
Solution 1:
Please check this repo. Check where you are making a mistake. I believe its the way you are importing the js
file. you should use like below
<script src="{{ url_for('static', filename='js/jsfun.js') }}"></script>
Post a Comment for "Couldn't Apply Javascript To My Template In Flask Despite Having It In The Static Dir. How Do I Resolve That In The Code Below?"