title: Setting PYTHONPATH and PYTHONHOME using Heroku
body: <p>I'm trying to set my <code>PYTHONPATH</code> and <code>PYTHONHOME</code> variables but can't figure it out!</p>
  
  <p>When trying to run <code>python</code>, I get the error <code>No module named site</code>.</p>
  
  <p>After doing some research, it seems that this is because these <code>PYTHONPATH</code> and <code>PYTHONHOME</code> environment variables are not set correctly.</p>
  
  <p>When I try to run <code>python</code> after unsetting both of these variables, it is able to run properly. But the problem is that this only lasts for the life of my <code>virtualenv</code>. After I stop the <code>virtualenv</code> and run it again, the problem comes back.</p>
  
  <p>Well I'm saying <code>virtualenv</code>, but really it's my environment on Heroku.</p>
  
  <p>How do I unset these variables permanently?</p>
  
  <hr>
  
  <p>Update: I followed the <a href="http://tomatohater.com/2012/01/17/custom-django-management-commands-on-heroku/" rel="nofollow noreferrer">tutorial here</a> which seemed to do the trick.</p>