I am trying to create a site using pinax. To index the models using djapian, I tried to run "manage.py index" as a cron job, but still getting a pinax error. "Error: No module name with name . " However, the task runs correctly when I run it from the shell. My definition of crontab is as follows:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/mypath/test_project
*/1 * * * * root python /root/mypath/test_project/manage.py index >>/tmp/backup.log 2>&1
Can someone explain why I am getting this error?
source
share