mod_python을 통해 장고 프로젝트를 배포하려고하는데 핸들러 모듈이 없다는 오류가 계속 나타납니다.Django mod_python 배포 오류
내 아파치 설정 :
<Location />
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE bookmarklet_server.settings
PythonOption django.root/
PythonDebug On
#PythonPath "['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']"
</Location>
다른 경로 그냥 기본 PYTHONPATH를 복사 할 내 시도에서,하지만 도움이되지 않았다.
이 오류는 inadvertendly 반환되지 않습니다 :파이썬 2.6.4 (r264 : 75706 년 11 월 2 2009 년 14시 44분 17초) [GCC
파이썬 콘솔의 빠른 테스트는 모듈이 accesible해야 보여줍니다 4.4.1] on linux2 자세한 내용은 "help", "copyright", "credits"또는 "license"를 입력하십시오. 그러나 사이트를로드
>>> 수입 django.core.handlers.modpython
오류
MOD_PYTHON ERROR
ProcessId: 8926
Interpreter: '<ip>'
ServerName: '<ip>'
DocumentRoot: '/htdocs'
URI: '/'
Location: '/'
Directory: None
Filename: '/htdocs'
PathInfo: '/'
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named django.core.handlers.modpython
django의 경로는 무엇입니까? 웹 서버 사용자가 액세스 할 수 있습니까? – bobince