英文:
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',因为它不存在。
英文:
I'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.
答案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>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论