新功能(dvadmin): 导入问题修复
parent
306a72e8be
commit
164e13fe50
|
@ -152,7 +152,7 @@ def excel_to_data(file_url, field_data):
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
# 读取excel 文件
|
# 读取excel 文件
|
||||||
data = xlrd.open_workbook(os.path.join(settings.BASE_DIR, *file_url.split(os.sep)))
|
data = xlrd.open_workbook(os.path.join(settings.BASE_DIR.replace('\\', os.sep), *file_url.split(os.sep)))
|
||||||
table = data.sheets()[0]
|
table = data.sheets()[0]
|
||||||
# 创建一个空列表,存储Excel的数据
|
# 创建一个空列表,存储Excel的数据
|
||||||
tables = []
|
tables = []
|
||||||
|
|
Loading…
Reference in New Issue