-bash: ./manage.py: Permission denied -bash: ./manage.py: Permission denied python python

-bash: ./manage.py: Permission denied


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.


To give yourself execute permission for the file containing the script use the command:

chmod u+rwx filename.py

To give other users permission to read and execute but not alter the shell script use:

chmod go+rx filename.py

reference http://unixhelp.ed.ac.uk/scrpt/scrpt1.2.html


You can try to use

python manage.py migrate

instead of .

/manage.py migrate