Hi, im new to pythonanywhere, and i have a little problem, on my local apps i serve static files like this:
@get('/<filename:re:.*\.css>')
def stylesheets(filename):
return static_file(filename, root='static/css')
Mi folder tree is something like this:
-MywebApp
---- server.py
---- /views
| ---- index.tpl
---- /static
| ---- /css
| ---- style.css
With this config i can server .css files and also images, .js, etc.
But how can i server the static files without modifying my code and my app folder hierarchy? Thanks!