This story takes place under Ubuntu linux 10 with python 2.6.5.
I have created a new custom command in my django project call taskserver
.
When I am in the project directory (which is /opt/acme/python-site/acme/
and I execute
python manage.py taskserver
the custom command is started correctly.
When I am in /opt/acme/
the following command executes my custom taskserver
command:
python /opt/acme/python-site/acme/manage.py taskserver
When I am in /opt/acme/deploy/
the following command (same as above) fails to execute my custom taskserver
command:
python /opt/acme/python-site/acme/manage.py taskserver
It complains that:
Unknown command: 'taskserver'
Type 'manage.py help' for usage.
Any idea why the current location matters even though I am specifying the full path to my manage.py file? I need to get this command running from a fabric script which resides in the deploy directory. Any suggestions on how to make this work?