
내 Ubuntu(12.04)의 기본 Python 버전은 2.7 입니다. python2.7 프로젝트의 경우 다음과 같이 구성합니다.
<Location "/callcentre">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE callcentre.settings
PythonInterpreter callcentre
PythonDebug On
PythonPath "['/home/user/env/callcentreENV/lib/python2.7/site-packages','/home/user/env/callcentreENV/'] + sys.path"
</Location>
그리고 그것은 완벽하게 작동하고 있습니다.
이제 내가 원하는 것은 python3.2를 사용하여 새 프로젝트를 만드는 것입니다. 그리고 sys.path가 기본 python2.7을 가리키고 있으므로 appache에서 이를 구성하는 방법을 모르겠습니다.