title: running python script with cron
body: <p>hey guys, im trying to run a python script after every 5 minutes using cron, inside the script is a django import </p>
  
  <pre><code>import django
  </code></pre>
  
  <p>when running the crontab i get mailed the following error</p>
  
  <pre><code>ImportError: No module named django
  </code></pre>
  
  <p>this is what the crontab file looks like:</p>
  
  <pre><code>MAILTO=commonzenpython@gmail.com
  
  */5 * * * *  /usr/bin/python /Users/paulo/Desktop/ashtanga/ping/sender.py
  </code></pre>
  
  <p>do anyone of you know whats causing this ?
  btw i do have django insalled version 1.2, python 2.6, and MacOX 10.6</p>
  
  <p>EDIT:</p>
  
  <p>$PYTHONPATH = isn't this the same as which python</p>
  
  <p>python -v = </p>
  
  <pre><code>Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) 
  [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
  </code></pre>
  
  <p>which python</p>
  
  <pre><code>/Library/Frameworks/Python.framework/Versions/2.6/bin/python
  </code></pre>