On Wed, Jan 28, 2009 at 3:39 PM, saturdayplace wrote:
>
> Ahh. OK, so I installed django in /home/thunsaker/python_modules/
> django-trunk. And then did:
>ln -s /home/thunsaker/python_modules/django-trunk/django /usr/lib/
> python2.5/site-packages
> so that django's on the pythonpath. I'm u
djangotest'
> > > PathInfo: '/'
>
> > > Phase: 'PythonHandler'
> > > Handler: 'django.core.handlers.modpython'
>
> > > Traceback (most recent call last):
>
> > > File "/usr/lib/python2.5/site-pac
ngo.core.handlers.modpython'
>
> > Traceback (most recent call last):
>
> > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
> > 1537, in HandlerDispatch
> > default=default_handler, arg=req, silent=hlist.silent)
>
> &
o.core.handlers.modpython'
>
> Traceback (most recent call last):
>
> File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
> 1537, in HandlerDispatch
>default=default_handler, arg=req, silent=hlist.silent)
>
> File "/usr/lib/python2.5/s
on/importer.py", line
1202, in _process_target
module = import_module(module_name, path=path)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named dja
ython sys.path /home/
> > > > > /usr/local/lib/python25.zip
> > > > > /usr/local/lib/python2.5
> > > > > /usr/local/lib/python2.5/plat-linux2
> > > > > /usr/local/lib/python2.5/lib-tk
> > > > > /usr/local/lib/python2.5/lib-dynload
>
ython2.5/lib-dynload
> > > > /usr/local/lib/python2.5/site-packages
> >
> > > > Also when i run sudo -u apache python(or python2.5) and import
> django:
> > > > '/usr/local/lib/python2.5/site-packages/django/
> > > > __init__.pyc'>
&
PYTHONPATH and try importing
> > 'django.core.handlers.modpython', does it work? Verify that '/home' is
> > in sys.path when doing this from command line.
>
> > Do all the above but use 'sudo -H -u apache python2.5'.
>
> > > (and python2.3
e' is
> in sys.path when doing this from command line.
>
> Do all the above but use 'sudo -H -u apache python2.5'.
>
> > (and python2.3 for the other one.)
>
> How does Python 2.3 come in to this?
>
> Graham
>
> > Here's the error:
> >
ult_handler, arg=req, silent=hlist.silent)
> File "/usr/local/lib/python2.5/site-packages/mod_python/
> importer.py", line 1202, in _process_target
> module = import_module(module_name, path=path)
> File "/usr/local/lib/python2.5/site-packages/mod_python/
> importer.py
g=req, silent=hlist.silent)
File "/usr/local/lib/python2.5/site-packages/mod_python/
importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)
File "/usr/local/lib/python2.5/site-packages/mod_python/
importer.py", line 304, in import_module
mporter.py", line
> 1202, in _process_target
> module = import_module(module_name, path=path)
>
> File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
> 304, in import_module
> return __import__(m
t;/usr/lib/python2.5/site-packages/mod_python/importer.py", line
304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named django.core.handlers.modpython
---
modpython.py is in /usr
13 matches
Mail list logo