django-rest-framework - 我正在尝试将我的 djangorest api contactsapp 部署到 heroku
问题描述
我是 python 和 djangorestframework 的新手。当我运行 python manage.py 检查时,我得到 ModuleNotFoundError No module named 'drf-yasg'。事实上,我已经使用 pip install drf-yasg 安装了这个模块。我还使用 pipenv install drf-yasg 将它安装在 pipfile 和 Pipfile.lock 文件中我还在 settings.py 文件中添加了模块,但错误仍然存在。我 这里是错误的截图
解决方案
推荐阅读
- c# - 从当前 chrome/firefox 浏览器会话中读取页面源
- javascript - Javascript - 替换页面中以开头的所有字符串
- javascript - NodeJS/ES6 - 向其中添加对象后数组为空 - 范围问题?
- javascript - 如何使用 v-model 修改深度 vuex 数据
- angular - 无法在 Angular 中获取先前检查的表单值
- html - 如何在重定向到其他页面之前显示消息?
- ios - 无法在 iOS 设备上打开 pkpass
- python - 如何模拟同一类的嵌套函数调用
- r - 格点图未显示 R 中 y 值的计数
- ios - 如何有效地用流内容填充 UITextView?