running python script with cron
Posted
by
paulo
on Stack Overflow
See other posts from Stack Overflow
or by paulo
Published on 2011-01-03T02:48:37Z
Indexed on
2011/01/03
2:53 UTC
Read the original article
Hit count: 400
hey guys, im trying to run a python script after every 5 minutes using cron, inside the script is a django import
import django
when running the crontab i get mailed the following error
ImportError: No module named django
this is what the crontab file looks like:
[email protected]
*/5 * * * * /usr/bin/python /Users/paulo/Desktop/ashtanga/ping/sender.py
do anyone of you know whats causing this ? btw i do have django insalled version 1.2, python 2.6, and MacOX 10.6
© Stack Overflow or respective owner