[Django]-Upload and read xlsx file in django

0👍

I used

workbook = xlrd.open_workbook(filehandle.temporary_file_path())

in place of

workbook = xlrd.open_workbook(filehandle)

and added

FILE_UPLOAD_HANDLERS = (
    'django.core.files.uploadhandler.TemporaryFileUploadHandler',
)

in settings.py and it worked

Leave a comment