Re: empty ImageField's in _post_save method

2005-09-05 Thread Krzysztof Drozd
this is not a problem, if the upload_to attribute is not given django will uplada the file in MEDIA_ROOT directory and make that. i can uplad file and servin him from django. but when i will resize (with PIL) the upladed file i con't. when i make im = Image.open(PATH_TO_IMAGE+self.ImageFieldName

Re: empty ImageField's in _post_save method

2005-09-05 Thread Adrian Holovaty
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) >

Re: empty ImageField's in _post_save method

2005-09-04 Thread Krzysztof Drozd
pps: get_basic_file_filename() is eq to MEDIA_ROOT :( it contains only a dir, not the path to the file

empty ImageField's in _post_save method

2005-09-04 Thread Krzysztof Drozd
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 impo