--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Not really.
1) User chooses file from disk
2) Browser reads file from disk, and generates POST request
3) Django receives POST request, and generates temporary file to store
received POST data
4) Django model form processes request, and moves temporary file into
the location specified by upload_to attribute on model field
5) You save the model instance, which puts us into the save() method,
where you want to create a thumbnail of the file
At this point, the full size image is on disk, in
os.path.join(settings.MEDIA_ROOT, instance.file_field.path). You want
to read that image in, create a django.core.files.File (or subclass)
instance for the thumbnailed image, and assign it to the thumbnail
field on the model.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
For the record, while it might have seemed to you that Bruno was being
"snooty", in fact he was probably (I have no direct evidence) simply
crediting you with more knowledge than you actually had.
Misunderstandings can be frustrating, and we all give in to the
frustration sometimes.
regards
Steve
--
DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.