Reputation: 12181
I'm trying to migrate my Django app using South and am getting permission denied warning. I'm logged in as root though (I know, risk risk, just trying to get things set-up). Why then does this get rejected?
root@Harold:~/OmniCloud/omnicloud: ./manage.py convert_to_south OmniCloud_App
-bash: ./manage.py: Permission denied
Upvotes: 1
Views: 5490
Reputation:
You should add the following lines at the beginning of the script:
#!/usr/bin/env python
(assuming that the interpreter is on the user’s PATH) After that you can make it executable by
chmod +x manage.py
hope, it helps.
Upvotes: 0
Reputation: 2968
If for any reason you NEED to execute manage.py just run:
chmod +x manage.py
How ever, as larsmans already said, python manage.py
is the way to run it.
Upvotes: 2
Reputation: 500873
You need to make sure that ./manage.py
has the executable bit set:
chmod a+x manage.py
Upvotes: 2
Reputation: 363807
manage.py
probably does not have its executable bit set, which is on purpose. Use python manage.py
instead as per the Django docs.
Upvotes: 8