I have been tasked with finishing a build for production that was interrupted due to another staff member leaving at short notice. It's RedHat Enterprise Linux 5 and there are two versions of python on the box. If I type python I get version 2.7. However if I try and use django-admin.py I find that it is trying to use python version 2.4. How do I specify to Django that I want to use python 2.7? I've seen multiple supposed answers on the net but nothing actually seems to answer my specific question. I'm fairly experienced on linux but have never had to setup django and python before. My Apache, php, phpMyAdmin setup is all working properly (after I sorted out some other issues), but my second question is how do I wire up python/django to apache (or httpd as rhel5 calls it). I've tried using mod_wsgi but have been told I must use mod_python. Advice or pointers to relevant urls are much appreciated.
Thanks Dave, Melbourne
--
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...@googlegroups.com.
To post to this group, send email to django...@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/74af440c-b42d-4fcd-abfa-74da94958b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
thanks for your suggestions. I'm still on the path. I'll put more details in my reply to WongoBongo below.
cheers
Dave
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...@googlegroups.com.
To post to this group, send email to django...@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/f10d728f-b690-4681-8807-0c66d7ddd8b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.