Hey,
I've got the following code in my models.py:
from django import forms
class Foto(models.Model):
omschrijving = models.CharField(max_length=100)
afbeelding = models.ImageField(upload_to='media/afbeeldingen/
header/fotos')
def clean_afbeelding(self):
raise forms.Validatio
I don't understand, sorry :$. Do you care to explain a little bit
more? Or could you give an example?
I'm using the admin interface btw.
On 31 jul, 01:45, Karen Tracey wrote:
> On Thu, Jul 30, 2009 at 4:02 PM, Martje wrote:
>
> > Hey,
>
> > I've go
Excellent! Thank you!
On 31 jul, 14:42, Karen Tracey wrote:
> On Fri, Jul 31, 2009 at 3:18 AM, Martje wrote:
>
> > I don't understand, sorry :$. Do you care to explain a little bit
> > more? Or could you give an example?
>
> > I'm using the admin interf
Hey,
I have the following HTML-code autogenerated for me by Django:
That's ok according to my models.py:
afbeelding1 = models.FileField(upload_to='media/afbeeldingen/
gastenboek/', verbose_name="", blank=True)
afbeelding2 = models.FileField(upload_to='media/afbeeldingen/
gastenboek/', verb
You're right, that was the problem. Thanks!
On Aug 4, 2:18 pm, James Bennett wrote:
> On Tue, Aug 4, 2009 at 7:08 AM, Martje wrote:
> > This seem ok, since I only used field 3 and 1. But when I look at
> > request.FILES, I get:
>
> >
>
> > It should
go do this?
On 4 aug, 15:19, Martje wrote:
> You're right, that was the problem. Thanks!
>
> On Aug 4, 2:18 pm, James Bennett wrote:
>
> > On Tue, Aug 4, 2009 at 7:08 AM, Martje wrote:
> > > This seem ok, since I only used field 3 and 1. But when I look at
> >
ngoproject.com/en/dev/topics/http/file-uploads/#basic-...
>
>
>
> On Tue, Aug 4, 2009 at 8:30 PM, Martje wrote:
>
> > One question though. Even when it is in request.FILES, it doesn't get
> > saved like I expected it would.
>
> > I expected Django to upload
This is possible with Django.
Check out the auth app :-).
On 4 aug, 16:30, xerophyte wrote:
> Yes, you can use the django, but you need to verify all the commands
> before you execute .. ( having secure daemon to do it for you ???)
>
> On Aug 4, 8:45 am, HB wrote:
>
> > Hey,
> > We have a coup
8 matches
Mail list logo