Re: Problem with Image field saving

2009-12-04 Thread Phui Hock
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

Problem with Image field saving

2009-12-03 Thread guptha
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 "

Re: Problem With Image Field

2005-09-25 Thread Kenneth Gonsalves
On Monday 26 Sep 2005 12:48 am, Armin wrote: > ImportError: No module named PIL install PIL -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Re: Problem With Image Field

2005-09-25 Thread Adrian Holovaty
On 9/25/05, Andreas <[EMAIL PROTECTED]> wrote: > make sure you have the Python Imaging Library > (http://www.pythonware.com/products/pil/) installed. I've improved the model validator so that it displays an error if you use an ImageField without having PIL installed. "django-admin.py validate" i

Re: Problem With Image Field

2005-09-25 Thread Armin
You guys are fantastic. I am new to python and Django and unfamiliar with some of the well known concepts here. So, I might bug you guys a few more times for which I apologize. I am trying to develop a dating/friends site based on Django. Thanks for your support, Armin

Re: Problem With Image Field

2005-09-25 Thread Robert Wittams
Have you got PIL installed? http://www.pythonware.com/products/pil/

Re: Problem With Image Field

2005-09-25 Thread Andreas
Armin, make sure you have the Python Imaging Library (http://www.pythonware.com/products/pil/) installed. Andreas

Problem With Image Field

2005-09-25 Thread Armin
Hey Everyone, Somehow my imageField is not working. I have set the upload to and the MEDIA_ROOT setting. I tried changing the imageField to fileField and it worked just fine (uploaded the file and placed it in database). As soon as I change it to imageField it dies on me. Something about PIL that