基于form的django图片上传
摘要:
第一种,直接上传viewsclass TestimgForm(forms.Form): title = fields.CharField() img = fields.FileField()def testimg(request): import o... 阅读全文
posted @ 2018-06-03 13:26 菲宇 阅读(356) 评论(0) 推荐(0) 编辑
posted @ 2018-06-03 13:26 菲宇 阅读(356) 评论(0) 推荐(0) 编辑