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
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)
>
pps: get_basic_file_filename() is eq to MEDIA_ROOT :( it contains only
a dir, not the path to the file
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
4 matches
Mail list logo