Re: image upload problems (sorry for yet another one)

2009-01-26 Thread Brian Neal
On Jan 26, 11:51 am, PeteDK wrote: [...] > The thing is. Now it still doesn't work through my website, however it > now works through admin. > Well it only works with .bmp pictures. Maybe my PIL is broken? could > that be the reason for my problem from before? As I

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Now i have tried some different things, just for testing. I have changed my forms til ModelForm instead of normal forms. forms: class ProfileForm(ModelForm): class Meta: model = Profile model is the same views is now: formP = ProfileForm

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
#Daniel Yep, but still no luck :( do I have to do anything else in my template? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread Daniel Roseman
On Jan 26, 3:16 pm, PeteDK wrote: > Hi there :) > > first the code: > > forms: > class ProfileForm(forms.Form): >         ... >         image = forms.ImageField(required = False) > > models: > class Profile(models.Model): >         user = models.ForeignKey(User,

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Hi. this is what it looks like. On 26 Jan., 16:29, Brian Neal wrote: > On Jan 26, 9:16 am, PeteDK wrote: > > > > > Hi there :) > > > first the code: > > > forms: > > class ProfileForm(forms.Form): > >         ... > >         image =

Re: image upload problems (sorry for yet another one)

2009-01-26 Thread Brian Neal
On Jan 26, 9:16 am, PeteDK wrote: > Hi there :) > > first the code: > > forms: > class ProfileForm(forms.Form): >         ... >         image = forms.ImageField(required = False) > > models: > class Profile(models.Model): >         user = models.ForeignKey(User,

image upload problems (sorry for yet another one)

2009-01-26 Thread PeteDK
Hi there :) first the code: forms: class ProfileForm(forms.Form): ... image = forms.ImageField(required = False) models: class Profile(models.Model): user = models.ForeignKey(User, unique=True) image = models.ImageField(upload_to="images/",