我试图在django rest中使用Pyinstaller,它很好地生成.exe,但是在执行.exe时出现了一个错误,错误是
ModuleNotFoundError: No module named 'rest_framework'
我的问题是如何使用Pyinstaller安装依赖项,或者是否有其他方法。
在django 2.2.4中自动生成django rest框架的API文档时会出现此错误,据我在日志中看到的,它与{% load静态文件%}的降级有关。
templateSyntaxError at /
'staticfiles' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
cache
countries
i18n
l10n
log
phone
rest_framework
static
tz
Request Method: GET
Request