On 6 June 2012 16:56, ivanb <[email protected]> wrote: > > > On Jun 6, 2:40 am, Graham Dumpleton <[email protected]> > wrote: >> On 5 June 2012 23:53, ivanb <[email protected]> wrote: >> >> Run: >> >> python manage.py shell >> >> for Django application. >> >> Then do: >> >> import django >> print dango.__path__ >> >> where is it actually finding it? > > It's showing just that directory from vitualenv I loaded > > /home/user/.virtualenvs/myapp/lib/python2.7/site- > packages > > >> Are all the directories/files accessible/readable to user that Apache runs >> as. >> > > All directories are readable > > Could it be something else?
Including all directories back up to '/'. If /home/user is rwxrwx--- as is common for many Linux systems, Apache user will not be able to look into the directory. So don't look at just the 'django' package directory but each parent directory back up to '/'. Also use sudo to become the Apache user and run 'python manage.py shell' and see if can import 'django' in it. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
