ModuleNotFoundError:没有名为“django_DRF”的模块

问题描述 投票:0回答:1

我只是为了欢迎而运行 django 项目,它出现了没有名为“django_DRF”的模块的问题。

python==3.8
django==4.2

我已经安装了djangorestframework并在INSTALLED_APPS中添加了rest_framework,但我仍然有同样的问题。

谢谢您的帮助!

python django
1个回答
0
投票

如果在安装并将其添加到您的 INSTALLED_APPS 后它仍然存在,那么很可能是因为您正在使用

python3
来运行服务器,那没关系。所以你在安装时要做的就是使用
python3 -m pip install djangorestframework

© www.soinside.com 2019 - 2024. All rights reserved.