Re: Help to Upload image

2008-11-01 Thread Low Kian Seong
Yeah, if in doubt you can use the forms.as_p first to see what kind of html form it outputs and use that as the basis for creating your form. On Thu, Oct 30, 2008 at 7:05 PM, Giles Thomas <[EMAIL PROTECTED]> wrote: > > please smile wrote: >> Can anybody please tell how to upload a image ?

Re: Help to Upload image

2008-10-30 Thread Giles Thomas
please smile wrote: > Can anybody please tell how to upload a image ? I'm new to this myself, but I got something working using Django's forms mechanism. My view function looks something like this: --- class MyForm(ModelForm): class Meta: model =

Help to Upload image

2008-10-30 Thread please smile
Hi All, Can anybody please tell how to upload a image ? models.py class photos(models.Model): caption = models.CharField(max_length=10) photo = models.ImageField(upload_to= 'Path') It works at Admin Side .But not working at client side. MyHtml.html