On 9/4/05, Krzysztof Drozd <[EMAIL PROTECTED]> wrote:
> i have wrote some app thats have 3 ImageFields.
> - model -
> name = meta.CharField(maxlength=33)
> basic_file = meta.ImageField(blank=False,null=False)
> small_file = meta.ImageField(blank=True)
> biggg_file = meta.ImageField(blank=True)
> 
> in my _post_save(self):
> import Image
> from project.settings.main import MEDIA_ROOT
> ib = Image.open(MEDIA_ROOT,'/'+self.basic_file)
> #
> # make thumb,..
> 
> all another fields in this model are not empty,
> only the ImageFields !!!

I suspect things aren't working because you haven't set the required
"upload_to" attribute on your ImageFields. See the FileField
documentation at http://www.djangoproject.com/documentation/model_api/
.

I've updated the model validator to throw an error if upload_to isn't
given for FileFields or ImageFields.

Adrian
-- 
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to