title: How do I change which version of python mod_python uses
body: <p>I'm doing some introductory work with django which seems really easy (and fun) so far but I have been doing all this from Python 2.6 which I installed in /opt/local (RedHat 5.3) because the python that came with redhat was 2.4. I set up a symlink:</p>
  
  <pre><code>/usr/bin/python2.6 -&gt; /opt/local/bin/python
  </code></pre>
  
  <p>and I have been using that for all the django stuff so far; i.e. </p>
  
  <pre><code>&gt; python2.6 manage.py runserver
  </code></pre>
  
  <p>However, when I try to move on to production mode, mod_python isn't using the right version of python:</p>
  
  <pre><code>Mod_python error: "PythonHandler django.core.handlers.modpython"
  
  Traceback (most recent call last):
  
    File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
      log=debug)
  
    File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 461, in import_module
      f, p, d = imp.find_module(parts[i], path)
  
  ImportError: No module named django
  </code></pre>
  
  <p>I have this in my /etc/httpd/conf/httpd.conf:</p>
  
  <pre><code>&lt;Location "/chat"&gt;
   SetHandler python-program
   PythonHandler django.core.handlers.modpython
   SetEnv DJANGO_SETTINGS_MODULE chat.settings
   PythonDebug On
   PythonPath "['/www/django/chat', '/opt/local/lib/python2.6/site-packages/django/'] + sys.path"
  &lt;/Location&gt;
  </code></pre>
  
  <p>So my question is, how do I make mod_python look for python2.6 instead of python?</p>