django 图片上传与显示到html
django中上传图片到static目录下的路径,若在web端引用图片{%static book.image%},则会报错,说,'ImageFieldFile' object has no attribute 'replace',那么就需要在setting中的template添加 'django.template.context_processors.static', 。然后在...