2006/1/5, mary <[EMAIL PROTECTED]>:
>
> i am trying to make my image dynamic and this is waht i am doing
> exactly
> i write in my model     full_image = meta.ImageField(upload_to =
> os.path.join(os.environ['Grill23_HOME'], '/media/images'), null = True,
> blank = True)
> and i found that Django creat a new folder /media/images/ and put the
> pictures in it but what i need is to put the picture in mapth relative
> to the MEDIA_ROOT
> can anyone help me pls
>
>

upload_to parameter is exactly the relative path to the MEDIA_ROOT, I
thought, so you could just use:

full_image = meta.ImageField(upload_to ='/media/images', null = True,
blank = True)

Try again!

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

Reply via email to