Unfortunately that hasn't worked. I even tried chown'ing the entire
tree beneath django-trunk, and the symlink itself, to www:www. Still
mod_python says that it cannot import django.core.handlers.modpython.
I have gone through your mod_python mptest exercise again and
everything works fine. Then, I simply run python setup.py install
again, and it all works fine. Any further ideas ? Can I try
importing django modules using mptest ?
Greig
On Dec 3, 9:38 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> Apache generally runs as a special user. This user must have read
> access to those Django modules you have symlinked into the Python site-
> packages directory. Thus if the files are not readable to others, or
> any of the directories from the root right down to where the Django
> software is actually installed are not readable/searchable to others,
> then Python running under Apache will fail in being able to import the
> modules.
>
> Graham
>
> On Dec 4, 5:25 am, Greig Rapley <[EMAIL PROTECTED]> wrote:
>
> > Actually, I have just rerun "python setup.py install" to get my
> > installation working again and noticed the running install_egg_info
> > that happens last. Might this have something to do with my problems
> > when using a symlink instead ?
>
> > On Dec 3, 6:17 pm, Greig Rapley <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have django (trunk) installed on MacOSX 10.5 using mod_python and it
> > > all works fine when I use python setup.py install to actually install
> > > the files retrieved via subversion. However if I follow the
> > > installation instructions to use a symlink to my SITE-PACKAGES
> > > directory I get the following traceback;
>
> > > Traceback (most recent call last):
>
> > > File "/Library/Python/2.5/site-packages/mod_python/importer.py",
> > > line 1537, in HandlerDispatch
> > > default=default_handler, arg=req, silent=hlist.silent)
>
> > > File "/Library/Python/2.5/site-packages/mod_python/importer.py",
> > > line 1202, in _process_target
> > > module = import_module(module_name, path=path)
>
> > > File "/Library/Python/2.5/site-packages/mod_python/importer.py",
> > > line 304, in import_module
> > > return __import__(module_name, {}, {}, ['*'])
>
> > > ImportError: No module named django.core.handlers.modpython
>
> > > Now I assume this is a Python path issue but I don't know what happens
> > > during "python setup.py install" that means my mod_python importer can
> > > find django.core.handler.modpython when it can't find the exact same
> > > file (at the exact same path) after I use a symlink ?
>
> > > Any help would be greatly appreciated.
>
> > > Greig
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---