• Register
0 votes
2k views

I was creating a new project in django. Firstly I installed django in my system but when I run the command :

python manage.py runserver

It does not work It shows a message :

python: can't open file 'manage.py': [Errno 2] No such file or directory

I installed django by running the command :

pip install django

and I started a project by running the command :

django-admin startproject Utility

Why am I seeing this error message, do anyone know?

10 7 2
6,060 points

Please log in or register to answer this question.

1 Answer

0 votes

Did you installed or created any virtual environment during the installation of django?

Your main problem should be you are not in the right directory of your django project file You should nevigate to your project file first. To nevigate to your project file you should run the command :

cd Utility

You can also check your Utility directory by running command :

cd Utility

 

dir

Then you should run the command:

python manage.py runserver

 

11 6 4
34,950 points

Related questions

0 votes
1 answer 43 views
43 views
Problem: any help : Python: can't open file 'get-pip.py': [errno 2] no such file or directory.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 83 views
83 views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Mar 6 Wafa Abu Yousef 6.1k points
2 votes
1 answer 3.8K views
3.8K views
Problem: When I try to run the below command on my command prompt: python get-pip.py It shows the following message: C:\Users\ASUS>python get-pip.py python: can't open file 'get-pip.py': [Errno 2] No such file or directory How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. Thanks in advance.
asked May 6, 2020 samhaz 5k points
0 votes
1 answer 5.9K views
5.9K views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Oct 21, 2019 peterlaw 6.9k points
0 votes
1 answer 2K views
2K views
Problem : I am very new to Quartz. So whenever I try to install Quartz on my system using pip install Quartz, I face the following error. Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ... [Errno 2] No such file or directory: 'requirements.txt' I am using Mac OSX with Anaconda. Does anyone have any clue on this issue?
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 71 views
71 views
Problem: I am trying to open a CSV file but for some reason python cannot locate it. Here is my code (it's just a simple code but I cannot solve the problem): import csv with open('address.csv','r') as f: reader = csv.reader(f) for row in reader: print row
asked Jan 10 Mashhoodch 13k points
1 vote
1 answer 149 views
149 views
Problem: Hello Kodlogs, I just joined this forum. I found you people knowledgeable and friendly alongside. Well, I am a new python developer. Well, it could be exaggerative if I address me as a developer, I am a new student perhaps. I have to learn a lot ... The above open command producing an error of filenotfounderror: [errno 2] no such file or directory: But why? Could you identify the problem?
asked Jun 29, 2020 adamSw 11.3k points
0 votes
1 answer 1.1K views
1.1K views
Problem : When I am trying to execute jupyter notebook in the virtual environment in my Arch Linux, the below error occurred. &ldquo;Error executing Jupyter command 'notebook': [Errno 2] No such file or directory&rdquo; The python version is 3.6, and the jupyter version is 4.3.0 I have researched a lot, but I am just unable to find anything relevant to above issue.
asked Jan 3, 2020 alecxe 7.5k points
0 votes
1 answer 15 views
15 views
Problem: No such file or directory error? Are you staring at an error that says: python: can't open file 'myfile.txt': [Errno 2] No such file or directory Or maybe: IOError : No such file or directory Are you saying something like: "Curses! It works on my machine?"?
asked Feb 23 Mashhoodch 13k points
0 votes
1 answer 6 views
6 views
Problem: Please help me to solve it. avrdude: ser_open(): can't open device "com1": no such file or directory
asked Mar 23 Ifra 24.4k points