how do you specify which python executable to use in Django 1.1.1?
I have a RH system running RHEL 5.3, which comes wi开发者_如何转开发th python2.4 that can't be removed for numerous reasons.
I have been able to build 64-bit RPMS for python 2.6 as an altinstall. It's called with "python26".
How can I tell Django to use this command to get to the proper python version, instead of the default "python".
I can, of course, change the symlink in /usr/bin manually, but i'm looking to fully automate the buildout of these systems, and I'm almost certain this is possible.
Thanks.
Look at virtualenv, you can setup your own environment for django (well, anything) with different lib versions, symlinks etc.
That depends on the deploying method you use. E.g., if you use the django-recommended mod_wsgi deployment, then you must compile it with the correct python version.
精彩评论