Dash assets folder problem

Hi,
in my dash app I want to load styles.css from the assets folder in VSCode, why can’t the dash find my assets folder?

My file structure:

and I cleared the browser cache.

I’ve been using inline CSS so far, but I’d like to try this method.

Maybe someone has had such a problem before with the assets folder?

try renaming the file to custom_styles.css. I remember vaguely having trouble with the naming…

Thank you! Unfortunately, it’s not good this renaming, my server doesn’t recognize it for some reason, even though inspect shows it.

It is recommended to add __name__ to the Dash constructor to ensure the resources in the assets folder are loaded app = dash.Dash(__name__, meta_tags=[...])

Thanks @PyGuy! Meta tags is not help. I think I found the problem in VScode. Dash only recognizes the CSS if I start the server from two places with the play button. I’m investigating why now. It might be an extension setting problem.