This is my forms.py:
class UploadImageForm(forms.ModelForm): class Meta: model = UserImages fields = [\'photo\']
and this i
If you don't want to implement a solution from scratch I suggest you to use a django app called sorl-thumbnail