2010-08-15 4 views
0

장고는 apt-ger를 통해 Ubuntu에 설치되었습니다.ImportError : django.core.handlers.modpython 모듈이 없습니다.

sudo apt-get install python-django 

새로운 기능을위한 개발 버전이 필요합니다.

http://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-server/

django-admin.py --version 
1.3 pre-alpha SVN-13591 

는 httpd.conf 파일

이 얻기를 변경하지 않았이 문서 다음

sudo apt-get purge python-django 

다시 설치 장고를 통해

제거 이전 설치 오류

,
MOD_PYTHON ERROR 

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 

몇 가지 검사

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import django 
>>> import django.core.handlers.modpython 
>>> 

답변

1

이 장고 디렉토리에서 근무

python setup.py install 
관련 문제