When I run python manage.py collectstatic in the bash console I keep getting "python: can't open file 'manage.py': [Errno 2] No such file or directory". But I can clearly see my manage.py file in my code editor, I am a beginner in django and its pretty frustrating. If anyone has any ideas what this can possibly be, I would love your help. Thanks
Asked
Active
Viewed 197 times
0
-
What directory are you running that command from? – Brian61354270 Jul 28 '20 at 20:12
-
my manage.py file is in my main project folder, the "django girls" folder – Dennis Osei Jul 28 '20 at 22:51
1 Answers
1
You have to run manage.py
from the directory that contains the manage.py file.

Nnaobi
- 399
- 3
- 12
-
Can you be more specific. I'm a beginner and i'm suppose to run the command in the bash console of pythonanywhere. I was suppose to run the python manage.py collectstatic – Dennis Osei Jul 28 '20 at 22:57
-
1In the bash console, you need to use `cd` command to change directory to the one where your `manage.py` is located. Use `pwd` command to check your current directory. It could be beneficial for you to learn basic shell commands. – Filip Jul 30 '20 at 09:55