You should retrieve file from request.FILES, not request.POST.
On Dec 4, 2:57 pm, guptha wrote:
> Hi group ,
> I am getting error like "Key 'fathers_photo' not found in
>
> forms.py
> class FatherProfileForm(forms.Form):
> fathers_photo = forms.ImageField(required=False)
> fathers_mobile
Hi group ,
I am getting error like "Key 'fathers_photo' not found in
{{fatherprofileform.as_p}}
Here FatherProfileForm does not represent UserProfile model .In this
case how can the error be rectified ?
Ganesh
--
You received this message because you are subscribed to the Google Groups
"
2 matches
Mail list logo