title: Crontab not using the django env variables defined in .bashrc
body: <p>I've django application which uses env variables defined in <strong>.bashrc</strong> file. The django app is getting the values defined in .bashrc file.</p>
  
  <p>I need to run a python management command in crontab. Usually this is pretty simple to define. Either you can define the management command in script and add it cron or use the command directly in the cron.</p>
  
  <p>But in this can cron is not getting the values of env variables defined in .bashrc file. I've tried almost every doc i found but still its not wokring.  </p>
  
  <p>here is the script i used:</p>
  
  <pre><code>WORKON_HOME=/home/ubuntu
  
  PROJECT_ROOT=/home/ubuntu/projects/
  
  . $WORKON_HOME/virtuals/bin/activate
  
  cd $PROJECT_ROOT
  
  python manage.py COMMAND
  </code></pre>
  
  <p>and in the cron tab i used:</p>
  
  <pre><code>*/2 * * * * /home/ubuntu/test.sh
  </code></pre>
  
  <p>This setup was working in all other cases.Now there is error when cron is executed. But the script works when manually executed.</p>