【发布时间】:2021-12-15 09:17:30
【问题描述】:
我在 heroku 中部署的 django 应用程序设法显示上传文件形式。但是,一旦我尝试上传 Excel xlsx 文件,它就会显示
UnknownParameters at /
Please check if there were typos in function parameters: {'model': None, 'initializer': None, 'mapdict': None}.
Otherwise unrecognized parameters were given.
以下安装设置已为 django-excel 完成
requirements.txt
pyinstaller
django-excel
pyexcel-xls
pyexcel-xlsx
pyexcel-ods
我确定我的 models.py 已连接并且与 mapdict 参数匹配正确
我看到了类似的问题 Why pyexcel throws exception "UnknownParameters: Please check if there were typos in function parameters"?,我尝试安装 pyinstaller 以及隐藏的导入
--hidden-import pyexcel_xls
--hidden-import pyexcel_xls.xlsr
--hidden-import pyexcel_xls.xlsw
但不幸的是,它仍然不适用于我的应用程序
我想知道是否有任何线索可以让我在 heroku 上运行我的 django Web 应用程序?或任何关于隐藏导入在 heroku 网络应用程序中运行的建议或学习?
【问题讨论】:
标签: python django excel heroku pyexcel