How to make live edit serve static files from e.g. "/static/index.css" as opposed to "projectName/static/index.css"
When I debug (live edit) in webstorm, css is not applied because only paths that include the project name is valid such as "/projectName/static/index.css".
When I don't debug and serve my files using my flask_app, only paths such as "/static/index.css" are valid (paths not including the projectName).
What's happening here?
请先登录再写评论。
Why don't you use your flask server for debugging/live edit?
Elena Pogorelova I can't "live edit" (meaning, I can't edit something in e.g. an html file and see instant changes) when I run my flask server; I have to refresh the browser after each change. That's why.
it's strange, as Live Edit is not web server-dependent, it should work equally regardless of the web server the app is hosted on