Keep on getting this error message when trying to run my django server: [Errno 2] No such file or directory

huangapple go评论64阅读模式
英文:

Keep on getting this error message when trying to run my django server: [Errno 2] No such file or directory

问题

I'm trying to run my django server but keep on getting this error, [Errno 2] No such file or directory.
我试图运行我的Django服务器,但一直出现这个错误,[Errno 2] 没有这个文件或目录。

I tried using the cd manage.py command but also got this error cd : Cannot find path 'C:\Users\nyaknoiton\Desktop\Django 2\manage.py' because it does not exist.
我尝试使用cd manage.py命令,但也出现了这个错误cd:无法找到路径'C:\Users\nyaknoiton\Desktop\Django 2\manage.py',因为它不存在。

英文:

Keep on getting this error message when trying to run my django server: [Errno 2] No such file or directoryI'm trying to run my django server but keep on getting this error, [Errno 2] No such file or directory.

I tried using the cd manage.py command but also got this error cd : Cannot find path 'C:\Users\nyaknoiton\Desktop\Django 2\manage.py' because it does not exist. Keep on getting this error message when trying to run my django server: [Errno 2] No such file or directory

答案1

得分: 1

需要首先进入 psychology_project 而不是 pychology_project,然后运行 python manage.py runserver

这是 manage.py 的所在位置。

英文:

You need to cd into psychology_project first not pychology_project. And then run python manage.py runserver

This is where manage.py lives.

答案2

得分: 0

"Firstly (you misspelled it)

Then remember to save your manage.py file to disk (Ctrl-s). Finally

```"

<details>
<summary>英文:</summary>

Firstly (you misspelled it)

cd psychology_project

Then remember to save your manage.py file to disk (Ctrl-s). Finally

python manage.py runserver


</details>



huangapple
  • 本文由 发表于 2023年4月19日 21:39:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76055237.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定