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

199 Views Asked by At

command line error 2I'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. command line error

2

There are 2 best solutions below

4
yettie On

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

This is where manage.py lives.

1
Jason Ho On

Firstly (you misspelled it)

cd psychology_project

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

python manage.py runserver