# Dash assets folder problem

**URL:** <https://community.plotly.com/t/dash-assets-folder-problem/92497>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [May 29, 2025, 3:28pm UTC](https://community.plotly.com/t/dash-assets-folder-problem/92497 "2025-05-29T15:28:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ester](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@Ester](https://community.plotly.com/u/Ester)\
**Post date:** [May 29, 2025, 3:28pm UTC](https://community.plotly.com/t/dash-assets-folder-problem/92497/1 "2025-05-29T15:28:57Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/3/d36d31cb1b07c622885e2544523846cbab26eabe.png)

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?

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [May 29, 2025, 4:03pm UTC](https://community.plotly.com/t/dash-assets-folder-problem/92497/2 "2025-05-29T16:03:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ester](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@Ester](https://community.plotly.com/u/Ester)\
**Post date:** [May 29, 2025, 4:18pm UTC](https://community.plotly.com/t/dash-assets-folder-problem/92497/3 "2025-05-29T16:18:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PyGuy](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@PyGuy](https://community.plotly.com/u/PyGuy)\
**Post date:** [May 29, 2025, 6:57pm UTC](https://community.plotly.com/t/dash-assets-folder-problem/92497/4 "2025-05-29T18:57:01Z")

</div>

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=[...])`

> **[Adding CSS & JS and Overriding the Page-Load Template | Dash for Python...](https://dash.plotly.com/external-resources#example:-including-local-css-and-javascript)**
>
> Learn how to add custom CSS and JS to your app as well as how to customize the HTML title, meta tags, and more.

---

<div class="post-metadata">

**Author:** ![Ester](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@Ester](https://community.plotly.com/u/Ester)\
**Post date:** [May 30, 2025, 11:10am UTC](https://community.plotly.com/t/dash-assets-folder-problem/92497/5 "2025-05-30T11:10:03Z")

</div>

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.
