开发者

ImageWithThumbnailsField generating empty thumbnail

I'm using an older version of sorl-thumbnail which has the model field ImageWithThumbnailsField. It works fine on my local dev server, but when I deploy it to Webfaction the thumbnails don't generate anymore. The file is created but it's empty. I found this curious message in the log:

2011/02/24 11:34:45 [warn] 15817#0: *74567794 a client request body is buffered to a temporary file /usr/local/nginx/client_body_temp/0000025310, client: ...

I'm guessing 开发者_运维百科that nginx is trying to create the file in a temp folder that it doesn't have permissions to write to. Any ideas on how to resolve this, by reconfiguring the temp directory perhaps?


Well, I solved this by upgrading to the latest sorl-thumbnail code, as well as deleting a custom version of PIL from the webapp's library on WebFaction. It instead uses the pre-installed version of PIL for my account. I'm assuming this is the difference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜