Dots in $path cause an error 'not found in static files'.
See original GitHub issueI have a case where it is a requirement to include a dot in part of the path. For example:
$path: /{root}/an/example.path
In doing so, I get the error:
'/an/example.path was not found in static files.'
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Django - Is My Static File in the Wrong Place? - Stack Overflow
BUT django by default looks for a static folder inside each installed app so in your case STATCFILES_DIRS is redundant. Make sure you...
Read more >Windows staticDirs issue - Storybook not loading assets ...
Then when we run npm run start, Storybook starts and appears to be working fine, but none of the static assets can be...
Read more >Serving static files with uWSGI (updated to 1.9) - Read the Docs
Every static mapping is fully translated to the “real” path (so symbolic links are translated too). If the resulting path is not under...
Read more >Top 10 Mistakes That Django Developers Make - Toptal
In case of failure, Django tries to find the file using django.contrib.staticfiles.finders.AppDirectoriesFinder , which looks in the static folder of every ...
Read more >how to fix collectstatic run error? : r/django - Reddit
When Django runs collectstatic, it looks in all of the STATICFILES_DIRS folders for static files, but that directory doesn't exist, which causes ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, that is what I needed to know. 😃
Looking into this specific case, the
$slug
was being used in the document, but the url was using{base}
which ignores the slug. Tested with the normal$path
and it was working as well… I think the reason it wasn’t working in this case is that it also needed the$localization.path
as well.