We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See #5 (comment)
The text was updated successfully, but these errors were encountered:
Can you share an example of the template?
Sorry, something went wrong.
Take this as an example: https://stackoverflow.com/questions/45865205/imagefield-django-template, modulo the changes suggested in the answer. Let me know if you want a full example.
I don't know if this can be a good solution but I had the same issue while serving statics locally, so I overrided the url_fetcher to fix it.
url_fetcher
def url_fetcher(self, url): if "file://" in url: file_path = url.replace("file://", "", 1) if file_path: url = f"{self.request.scheme}://{self.request.get_host()}{file_path}" return super().url_fetcher(url)
No branches or pull requests
See #5 (comment)
The text was updated successfully, but these errors were encountered: