Hi All, I found ImageField is hard to understand for me. Anyone can give me a example and some explanation on it? Thanks.
ImageField Like FileField, but validates that the uploaded object is a valid image. Has two extra optional arguments, height_field and width_field, which, if set, will be auto-populated with the height and width of the image each time a model instance is saved. In addition to the special get_FOO_* methods that are available for FileField, an ImageField also has get_FOO_height() and get_FOO_width() methods. These are documented elsewhere. Requires the Python Imaging Library. When should we define the filed as ImageField? Best wishes, Nick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---