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 recall, PIL out of the box onl
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
(request
#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 django-users@googlegroups.co
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, unique=True)
>
>
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 = forms.ImageField(required = False)
>
> > models:
> > clas
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, unique=True)
>
>
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/", blank=Tru
7 matches
Mail list logo