-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest-suffixed image not showing up #48
Comments
Pretty much related: #47 |
Thank you for bringing this up and already thinking of solutions! It's somewhat related to #47, but also very different :) My notes from analyzing the problem; scenario and settings:
Same settings as above, but:
The idea behind using the file-finders in the URL-fetcher was, that one does not need to run I am going to think further on this... your suggested PRs are possibilities, I am just not sure yet if I want to go around opening files just like that :) ... my current idea/approach would be a "reverse manifest lookup" to find the files' original names. |
Hi, any updates on this? |
Allright, put something together... went for the "reverse manifest lookup" solution... maybe you can try it out? It's in the develop branch. It should work with the second scenario described before:
|
At last, I was able to try it on a pet project and it seems to run fine. Thanks! |
Hi, apparently a static image cannot be displayed with the standard
static
template tag when using a manifest-appending storage.The issue seems to be in
utils.django_url_fetcher:34
, wherefind()
is invoked: file finders are not able to find the manifest file, becauseSTATIC_ROOT
does not and cannot appear inSTATICFILES_FINDERS
at the same time.A temporary workaround is to hardcode the file path with the prepended static root inside the template file.
I would like to propose a couple of alternative solutions:
#49 does not remove the current finding behaviour, but simply checks whether the collected file exists.
#50 Only performs said check ('cause is it really needed to trigger the finders in the first place?)
The text was updated successfully, but these errors were encountered: