Forums

CSS not connecting to my script, with flask. how to I call the css in my script?

I have a css called styles in my static folder

styles.css

and this is how I call in my script the css

app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP,dbc.icons.BOOTSTRAP])

how do I add styles to the app (root and every thing else I need)?

On PythonAnywhere you need to add static files mappings on the web app page as well, see this help page.

I've asked this in stackoverflow and plotly community, but have not recieved response.

do you know how I have to do that in my scrip? (don't know how to map the style)

Have you looked at the help page I sent a link to?