Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-16 Thread Kelvin Wong
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://st

Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-12 Thread Tom Evans
On Mon, May 12, 2014 at 12:09 PM, 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 p

Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-12 Thread Timothy W. Cook
I can't imagine virtualenv being a vulnerability risk. AFAIK; All it does is create a set of scripts to isolate the executing Python environment. http://virtualenv.readthedocs.org/en/latest/virtualenv.html In fact, I would almost say that it improves your ability to know EXACTLY what is in your e

Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-12 Thread David Malcolm
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 annoy

Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-12 Thread David Malcolm
Hi Timothy thanks for your suggestions. I'm still on the path. I'll put more details in my reply to WongoBongo below. 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

Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-07 Thread Kelvin Wong
Question one... The gist is: 1. Set up Virtualenv and Virtualenvwrapper (lots of howtos on the web for this - find one written in the last year) 2. Set correct environment keys to point to the right Python (similar to the following, you paths may be different) # ~/.bashrc export VIRTUALENVWRAP

Re: django on rhel5 with both python2.4 and python2.7 confusion

2014-05-07 Thread Timothy W. Cook
A good place to start is with this thread: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/django-users/_0RTNcYyCSI/24QinBTEnX8J Be sure to include CentOS in your searches for clues about this setup since many people use CentOS instead of RHEL. HTH, Tim On Wed, May 7,

django on rhel5 with both python2.4 and python2.7 confusion

2014-05-07 Thread David Malcolm
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