discovered strange problem with sorl-thumbnail

62 views
Skip to first unread message

m1chael

unread,
Apr 10, 2012, 5:55:45 PM4/10/12
to Satchmo users
I've added a picture to a product via code, and have replaced the
picture on the file system with a new picture.

The new picture is now shown in the full quality version, and not thumbnailed.

However, when I add an additional/new picture via the django admin
interface, the thumbnail shows up properly.

Any ideas on how this can be troubleshot?

Chris Moffitt

unread,
Apr 10, 2012, 5:59:27 PM4/10/12
to satchm...@googlegroups.com
Sorl thumbnail does caching of images. I suspect you'll need to refresh the cache when you programmatically add images.
 
-Chris


--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.


hynekcer

unread,
Apr 12, 2012, 11:09:00 AM4/12/12
to Satchmo users
Adding images programatically should be so easy as before, but
replacing by other image with the same name or deleting the image is
related to cache.
Method of deleting cached data for images individually is here
http://thumbnail.sorl.net/operation.html

--Hynek
Reply all
Reply to author
Forward
0 new messages