I'm using Fusion Passenger with a Ruby app and I set it up to work with the Desego appenzin I would also like to work on the app I am working on.
Googling for "passenger_wsgi.py" was able to get the following very simple non-DJ ango app working on a passenger:
passenger_wsgi.py: <('Content Type ',' text / plain ']] start_response (' 200 ok ', feedback_headers) [' hello world! ' N ']
However, if I add the line Import to django.core.handlers.wsgi
in this mix, I get' Import your passenger_service ' There was an error in py ' By printing Sys.path I found that the reason for the least reason is because the passenger is using the wrong Python installation on my machine.
How do I use the passenger (on the Apache) code> /opt/local/bin/python2.5 instead of the system default python?
An intriguing way to include a line in your passenger_vision package file:
if sys.version & lt; "2.4":
OS XLL ("/ usr / bin / python2.4", "python2.4", * sys.argv)
or
INTERP = "/ usr / local / bin / python" if sys.exrectable! = INTERP:
OSXEkl (Interpi, Interpice, * sys.argv)
Each of these basically tells the environment to use your favorite dragon.
Comments
Post a Comment