What should be the correct path for python flask's static_floder?

the directory under the packaged dist file of vue looks like this:

clipboard.png

python:


index.html

clipboard.png

but if it is normal to open index.html in dist directly in the browser, it means that there should be nothing wrong with the introduction path of static files? Is the value of static_folder written wrong?

Mar.29,2021

The static file of

flask requires you to import one by one using the url_for () function. You can refer to my project

1, https://github.com/eastossifr. this is the templates folder and static folder of the blueprint settings.
2, https://github.com/eastossifr.
this is a call static file, such as js, css, and img files.

Menu