Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Permission denied on running manage.py

📅 2016-Jan-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

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