I found the help page about "static files" here: [https://help.pythonanywhere.com/pages/StaticFiles/]
It seems that there is a nginx/openresty serving static files, after I map '/' to '/home/myname/static', and place a index.html in static folder, even I remove code @app.route('/'), I can also access "http://myname.pythonanywhere.com" since by default it returns 'index.html' to me.
But I also can set static folder in flask app, like:
app = Flask(name, static_url_path='', static_folder='/home/myname/static')
So, how does they co-work if static file server and flask app can both deal with the same route '/'. Further more, I can set @app.route('/img/abc') in flask, while also place a picture 'abc' in '/home/myname/static/img'. As I tried, static file server will pocess them in priority. So, is there some best practice that I can use the static file server to process static files, and flask function 'url_for' still work correctly?