question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dots in $path cause an error 'not found in static files'.

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Zoramitecommented, Jul 9, 2020

Thanks, that is what I needed to know. 😃

0reactions
Zoramitecommented, Jul 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found