Search code examples
pythondjangopycharm

Pycharm $python3 manage.py runserver issue


I'm trying to learn about the Django framework and I've started by running a project.

I seem to have some trouble on Pycharm:

 PyShop1 % $python3 manage.py runserver

When I input this it outputs:

zsh: command not found: manage.py

Can someone help me rectify the issue, as I can't seem to find the solution to this anywhere. I definitely have a manage.py file, as I can see it on the Project section of PyCharm.

Also If it helps I'm using MacOS


Solution

  • Did you check are you executing this command in proper directory?

    If your manage.py file is stored in directory 'app' you should open terminal inside this directory and execute this command.

    best regards,