[Answer]-Setting manage.py to executable is not working

1👍

Normally you would use:

python manage.py <cmd>

0👍

There is no space between startapp.

Also you need to make manage.py executable to execute it. Do chmod +x manage.py to make it executable. Alternatively you can do python manage.py <cmd> instead.

👤nabeel

0👍

Make sure that the first line in manage.py is #!/usr/bin/env python so that the shell will now that it needs to execute this file using Python. Read more… Shebang (Unix)

👤mpcabd

Leave a comment