Permission denied on running manage.py

Problem

I tried to run the Django manage.py script with an option and got this error:

$ ./manage.py migrate
bash: ./manage.py: Permission denied

Solution

Run the script through Python:

$ python manage.py migrate

Alternatively, give the file execute permissions before executing it:

$ chmod +x manage.py

Tried with: Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s