I have a Flask app that sets a custom root_path.
app = Flask( __name__, root_path='flask_news' ) @app.route('/login') def login(): return render_template('login.html') Flask can serve flask_news/templates/login.html but will not find the required CSS, which is under flask_news/static/bulma.css
In my template file I'm asking for the CSS like so:
<link rel="stylesheet" href="{{url_for('static', filename='bulma.css')}}"> and the head of the served webpage looks like
<link rel="stylesheet" href="{{url_for('static', filename='bulma.css')}}"> Why is Flask not able to serve the required CSS? I think I need to change something in how the static folder is located but I'm not sure on how.