You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am uploading images, and rather than create thumbnails dynamically via a template tag, I want to create the necessary thumbnails when the upload is done. This should essentially mirror what the template tag would do. So where:
I am uploading images, and rather than create thumbnails dynamically via a template tag, I want to create the necessary thumbnails when the upload is done. This should essentially mirror what the template tag would do. So where:
I would like to leave that code on the template, but pre-generate the thumbnail in the view:
th_img
has propertieskey
,name
,url
, etc, but no file is created in the cache, and there is no entry in thethumbnail_kvstore
.How do I "save" the thumbnail and get an entry in the
thumbnail_kvstore
?The thumbnail cannot go into a field for the model, because there are other sizes of thumbnail to be generated too.
Thanks
The text was updated successfully, but these errors were encountered: