0

On my site, I have the static folder inside the root folder of the site. Inside the static folder I have the img folder and inside the img I have an image.

When I set Flask's static_folder to the site's root folder, I can get the image in the following route:

"/static/img/index.png"

but when I put the static_folder as the static folder, I can't get the image even with the url_for.

I've already tried putting the static_folder as "/static/", "static", "./static", etc. And inside the url_for in the html I've tried everything too.

davidism
  • 121,510
  • 29
  • 395
  • 339
Henrique
  • 9
  • 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 12 '22 at 22:43

0 Answers0