📜  Django 表单我无法保存图片文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:40.339000             🧑  作者: Mango

代码示例4
class ExampleModel(models.Model):
    model_pic = models.ImageField(upload_to = 'pic_folder/', default = 'pic_folder/None/no-img.jpg')