0👍
✅
I do this by using a custom image field. The code for it is available on github at https://github.com/hellsgate1001/django-thumbs.
I didn’t create this, I forked it to add a bit more flexibility to the thumbnail creation and also to ensure it works with Django 1.5
2👍
Although their approach is different I suggest using sorl-thumbnail. Instead of creating the images when they are uploaded what this does is creates them when they are required and then caches them using whatever caching system you specify.
- [Answered ]-Can't delete user after removing app
- [Answered ]-How do I properly nest serializers in Django REST Framework?
- [Answered ]-How can I access the rest of the lower name spaces with django-redis?
- [Answered ]-Load data into ModelForm fields in edit mode before it rendered
- [Answered ]-With Django ModelForms, how do I including the "id" column or primary key in the HTML?
Source:stackexchange.com