Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
How can I use CSS and other static files (image, python, js, etc) in my Dash app?
I already tried to use the project library folder but I wasn't successful.
I know how to use such files from the internet but any solution if the files are only available locally?
Hi,
you need to use the instance-wide local/static/ folder, which is located in DATADIR/local/static/ and accessible in the UI via the Global Shared Code (from the global menu on the right of the menubar) > Static web resources. The files can then be accessed via the url http://dssHost:dssPort/local/static/path/to/the/file
Can you please elaborate where the DATA_DIR is?
Hi @ghaedya1 more information on the Data Directory can be found in the documentation.
I hope this helps!