I haven't used mod_python in such a long time that I don't recall the 
configuration details. Off the top of my head, you might want to check how 
to add the Python 2.7 site-packages folder to the path that mod_python 
searches for python modules like Django.

Also, check this out on SO.

http://stackoverflow.com/questions/2147695/how-do-i-change-which-version-of-python-mod-python-uses

K


On Monday, May 12, 2014 4:09:38 AM UTC-7, David Malcolm wrote:
>
> thanks for your reply WB. 
>
> I was hoping to avoid virtualenv. My webapp is a frontend to a 
> vulnerability scanner in a large corporation.
> They are very picky about what I can use and what I can't. Is virtualenv 
> suitable for such a production system?
> They insist that I cannot use mod_wsgi (it annoys me intensely, but hey 
> that's life) and HAVE to use mod_python.
> Is there any other way to get this working without virtualenv?
>
> I also have no choice about OS. rhel6 is undergoing an approval process as 
> an SOE but it won't happen any time soon :(
>
> I am so close to getting this working now but it does indeed look like 
> django (httpd) is using python2.4.
> Note that "which python" gives me 2.7 - what is causing django to use 
> python & mod_python 2.4? mod_python is installed for 2.7.
>
> Mod_python error: "PythonHandler django.core.handlers.modpython"
> Traceback (most recent call last):
>   File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 
> 287, in HandlerDispatch
>     log=debug)
>   File "/usr/lib64/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
>
> thanks for your help.
> cheers Dave
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/649d98d0-9a44-40a1-8a89-4da387487833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to