I want my Django project to use Python 2.7 instead of 2.6.8 -


I have to use Python 2.7 instead of my Django project 2.6.8. I installed the 2.7 and Django 1.5. But my project uses Python 2.6.8 which is the default. How can I change it?

Update :

This is my configuration:

  & lt; Directory "/ var / www / html / a /" & gt; SetHandler Python-program PythonPath "['/ var / www / html /'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE a.settings on PythonDebug & lt; / Directory & gt;   

It seems that sys.path achieves the path of 2.6.8 This is the Python path that Django sees:

['/ usr / lib / python2.7 /', '/ var / www / html /', '/ usr / lib / python2. 6 / site-packages / pip-1.1-py2.6.egg ',' /usr/lib/python2.6/site-packages/django_transmeta-0.6.7-py2.6.egg ',' / usr / lib64 / Python26.zip ',' /usr/lib64/python2.6 ',' /usr/lib64/python2.6/plat-linux2 ',' /usr/lib64/python2.6/lib-tk ',' / usr / Lib64 / python2.6 / lib-old ',' /usr/lib64/python2.6/lib-dynload ',' /usr/lib64/python2.6/site-packages ',' /usr/lib64/python2.6 /site-packages/gtk-2.0 ',' /usr/lib/python2.6/site-packages ',' /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-

Try to use VirtualEnv,

This will make it your virtual environment Manage tasks, where you can trust other dragon versions Other applications can use a Python version of its Dijengo installation without breaking.

Comments