当我在cmd manage.py runserver上给出命令时,它将我带入VS代码,而当我在vs代码错误中运行时(来自django.core.management)
当我在cmd manage.py runserver
上运行命令时,它将重定向到VS代码。当我尝试在VS代码上运行时,它显示系统找不到指定的路径。它强调了这一说法:
try:
from django.core.management
^^^^^^^^^^^^^^^^^^^^^^
When I ran the command on CMD manage.py runserver
it intern redirected to VS Code. When I tried to run on VS Code it showed the system cannot find the specified path. It was underlining this statement:
try:
from django.core.management
^^^^^^^^^^^^^^^^^^^^^^
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要将 python路径添加到可变环境
second
导航到您的Django项目,并将终端与此命令一起使用:
python manage.py runserver
first you need to add the python path to your variable environnement
Second
navigate to your django project and use terminal with this command :
python manage.py runserver
use Docs