0

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

settings.py

1 Answers1

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
  • 1
    In 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