[Answer]-Django custom form validation error

1👍

The error is on the form

image = self.cleaned_data.get('image',None)

you should get the image like

if 'image' in request.FILES:
    image = request.FILES['image']

Leave a comment