Django model field-ImageField

class ImageField(upload_to=None, height_field=None, width_field=None, max_length=100, **options)

FileFieldAll properties and methods are inherited from , but it will also verify whether the uploaded object is a valid image.

In addition to the special attributes available for FileField, ImageField also has height and width attributes.

In order to facilitate the query of these properties, ImageField has two additional optional parameters:

ImageFie

Guess you like

Origin blog.csdn.net/weixin_43336281/article/details/108484503