Flask Application - How to link a javascript file to website

前端 未结 4 806
情深已故
情深已故 2020-12-15 05:35

I am having some trouble getting started with using javascript files on my website (A Flask application). I start the website by running run.py which looks like this:

<
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 06:17

    So your index.html is at app/templates/index.html, and your jQuery is at app/javascript/jQuery.js right?

    I think your path is wrong. Try this:

    
    

提交回复
热议问题