Flask 3 · Templates, sessions and config

Link to a static file

Build the URL of a file in the static folder.

<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">

Official Flask 3 documentation

More templates, sessions and config commands

All templates, sessions and config commands · Flask 3 cheatsheet

Was this page helpful?