given a structure like inside a directory foo:
/web /static /css /img /model runapp.py How to server static files from web/static/css or /img
like
<link href="{{ url_for('web/static', filename='css/bootstrap.min.css') }}" rel="stylesheet"> It gives
werkzeug.routing.BuildError BuildError: ('web/static', {'filename': 'css/bootstrap.min.css'}, None) I have done
app = Flask(__name__, static_folder=os.path.join(os.getcwd(),'web','static'), static_url_path='') but it doesn't work. and btw whats the difference between static_folder and static_url_path ?
btw whats the difference between static_folder and static_url_path ?. You can find the answers here