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.