from django.core.files.storage import FileSystemStorage
fs = FileSystemStorage(location='/media/img')
class Loopwateradmin(object):
# 添加数据时候,一步一步提供数据
file_storage = fs
wizard_form_list = [
("基础信息", ("pointposition", 'imgs')),
]
(已解决)You need to define ‘file_storage‘ in your wizard view in order to handle file uploads
猜你喜欢
转载自blog.csdn.net/qq_15028721/article/details/121228898
今日推荐
周排行