Re: Incorrect Python path in Apache FCGI deployment

2009-09-30 Thread W.P. McNeill
I figured out the first problem listed above. It wasn't related to file permissions, but I want to document it here since if I hit it someone else is likely to hit it too. The problem was because I was writing application import statements incorrectly. For example, I was saying: from phone

Re: Incorrect Python path in Apache FCGI deployment

2009-09-30 Thread Karen Tracey
On Wed, Sep 30, 2009 at 12:47 PM, W.P. McNeill wrote: > > Because this appears to be a problem with load paths, I inserted code > at the top of phonemechart/urls.py just above the import statements to > write out the system path. > > import sys > > f = open('/tmp/pypath', 'w') > f.write("Path is:

Re: Incorrect Python path in Apache FCGI deployment

2009-09-30 Thread W.P. McNeill
Because this appears to be a problem with load paths, I inserted code at the top of phonemechart/urls.py just above the import statements to write out the system path. import sys f = open('/tmp/pypath', 'w') f.write("Path is: %s" % sys.path) f.close from django.conf.urls.defaults import * ...

Incorrect Python path in Apache FCGI deployment

2009-09-28 Thread W.P. McNeill
I have written a set of Django apps that works on my development machine but fails when I deploy it to Apache. The issue appears to be with the Python path that the Apache process is using, but none of the things I have tried have worked. I'm looking for suggestions as to what I am doing wrong.