sorl-thumbnail not creating thumbnails

蓝咒 提交于 2019-12-01 22:21:17

I have had very similar problem with you, I cannot use easy-thumbnails because I need to create thumbnails from external source. what I have figured out is on staging is using the same database as development, so after I rendered the images on development, it stores the cached filenames into database, and when you try to render on staging, it picks up the filenames from the same database, but obviously the files are not on staging.

Try running

./manage thumbnail clear

Sorl did not create thumbnails for us because we used urls that were incorrectly encoded. They would contain '+' instead of ' ' or '%20' for spaces and sorl would re-encode them to '%2B' ('+' encoded). The resulting url error was suppressed and the thumbnail creation was ignored. Maybe it helps someone with this problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!