Flask, Keep getting 404 serving static files using send_static_file

后端 未结 5 772
星月不相逢
星月不相逢 2020-12-28 13:46

I followed the instructions from How to serve static files in Flask, but still couldn\'t get it working.

Here\'s my project structure:

Project_path           


        
5条回答
  •  Happy的楠姐
    2020-12-28 14:00

    One possible cause of 404 error for pages you just added (even if programmed correctly), is if you have previous versions of the script (.py file) still running: make sure to close out and end (terminate) the process.

提交回复
热议问题