Thursday, September 1, 2022

[SOLVED] setting manage.py to executable is not working

Issue

I'm trying to follow a tutorial on django.

In the directory where manage.py is located I've run the following command in iTerm to set the file to execute: chmod +x manage.py

However when I type in manage.py startapp greetings and hit return, I get the following error: zsh: command not found: manage.py

But when I run ls -l, it shows what I believe to be the correct permissions: -rwxr-xr-x

Also, if I enter ./manage.py I get this error: zsh: permission denied: ./manage.py

What am I doing wrong?


Solution

Normally you would use:

python manage.py <cmd>


Answered By - laidibug
Answer Checked By - David Goodson (WPSolving Volunteer)