How do you use url_for in Flask to reference a file in a folder? For example, I have some static files in the static folder, some of which may be
url_for
static
In my case I had special instruction into nginx configuration file:
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { try_files $uri =404; }
All clients have received '404' because nginx nothing known about Flask.
I hope it help someone.