title: How can I tell Phusion Passenger which python to use?
body: <p>I'm using Phusion Passenger with a ruby app and I'd also like to set it up to work with an django appengine app I'm working on.</p>
  
  <p>Googling for "passenger_wsgi.py" I was able to get the following very simple non-django app working on passenger:</p>
  
  <p>passenger_wsgi.py:</p>
  
  <pre><code>def application(environ, start_response):
     response_headers = [('Content-type','text/plain')]
     start_response('200 OK', response_headers)
     return ['Hello World!\n']
  </code></pre>
  
  <p>However, if I add the line <code>import django.core.handlers.wsgi</code> into the mix, I get 'An error occurred importing your passenger_wsgi.py'.  By printing out the sys.path I've discovered that at least part of the reason is because Passenger is using the wrong python installation on my machine.</p>
  
  <p>How can I configure Passenger (on apache) to use <code>/opt/local/bin/python2.5</code> instead of the system default python?</p>