I want to ignore a directory completely inside assets folder. is it possible?
Hi,
Welcome to the community!
Yes, it is possible, as assets_ignore
accept regex patterns. From the API reference :
assets_ignore
A regex, as a string to pass tore.compile
, for assets to omit from immediate loading. Ignored files will still be served if specifically requested. You cannot use this to prevent access to sensitive files.
Hope this helps!
I couldn’t get ignoring entire asset subdirectories to work. I took a look at the dash.py code and the assets_ignore regex is only applied to file names, not directories. That would be a nice feature, though.