When we use easy_thumbnails in projects and then move media from local storage to remote storage, the media doesn’t appear as easy_thumbnail caches the thumbnails. So they produce 404 error on media request even when media is available in remote storage. There is following solution to this problem:
Here is an example on how to solve the problem.
This is forked repo of easy_thumbnails with support of existing media in remote storage. Instll it in environment instead of regular easy_thumbnails package.
2. Add following in settings file:
FILE_REMOTE_STORAGE = True
When you want to serve original files from remote location
THUMBNAIL_REMOTE_STORAGE = True
When you want to server thumbnails from remote location
EASY_CACHE_TIMEOUT = 30*60*60*24
When cahces needs to be refreshed.
And you are done, all of your exisitng media will be available now without any error from remote location.