-bash: ./manage.py: Permission denied

ssherwin picture ssherwin · May 7, 2011 · Viewed 62.7k times · Source

After running: $ ./manage.py migrate I am getting the following error:

-bash: ./manage.py: Permission denied

Trying to run a migration after making a change in the DB. Any advice would be really appreciated.

Answer

zeekay picture zeekay · May 7, 2011

You need to make manage.py executable to excecute it. Do chmod +x manage.py to make it excecutable. Alternately you can do python manage.py <cmd> instead.