Trying to get started with Django on pycharm.
(venv) C:UsersVincePycharmProjectsassignment>python manage.py runserver
But I get this error message whenever i run manage.py:
C:UsersVinceAppDataLocalProgramsPythonPython37-32python.exe: can’t open file ‘manage.py’: [Errno 2] No such file or directory
I do have a django directory opened with a manage.py file in it. Can anyone assist me on what to do?
I have tried other solutions, like:
python -vvvvv manage.py runserver python manage.py migrate
Advertisement
Answer
You need to either specify the exact location of the manage.py
file. I.e.:
python3 Users/Vince/Desktop/DjangoProject/manage.py runserver
or cd
to the directory it’s in and run from there.
cd Users/Vince/Desktop/DjangoProject
> python manage.py runserver