fix: 临时文件默认temp
This commit is contained in:
parent
bc919c8970
commit
19239c6b42
|
@ -155,7 +155,7 @@ def export_excel_img(field_data: list, data: list, FileName: str):
|
||||||
ws.add_image(i[0], i[1])
|
ws.add_image(i[0], i[1])
|
||||||
|
|
||||||
FileNameF = FileName + datetime.now().strftime('%Y%m%d%H%M%S') + '.xlsx'
|
FileNameF = FileName + datetime.now().strftime('%Y%m%d%H%M%S') + '.xlsx'
|
||||||
path = '/media/temp/'
|
path = '/temp/'
|
||||||
pathRoot = settings.BASE_DIR + path
|
pathRoot = settings.BASE_DIR + path
|
||||||
if not os.path.exists(pathRoot):
|
if not os.path.exists(pathRoot):
|
||||||
os.makedirs(pathRoot)
|
os.makedirs(pathRoot)
|
||||||
|
|
Loading…
Reference in New Issue