0
나는 오픈 소스 장고 응용 프로그램 (OSQA)를 설치하려고 발생하지만 난이 오류를 얻을 :예외 처리 WSGI 스크립트
[Tue Sep 24 10:37:09 2013] [error] mod_wsgi (pid=82486): Exception occurred processing WSGI script '/home/fuiba/webapps/osqa/osqa.wsgi'.
[Tue Sep 24 10:37:09 2013] [error] Traceback (most recent call last):
[Tue Sep 24 10:37:09 2013] [error] File "/home/fuiba/webapps/osqa/lib/python2.7/django/core/handlers/wsgi.py", line 232, in __call__
[Tue Sep 24 10:37:09 2013] [error] self.load_middleware()
[Tue Sep 24 10:37:09 2013] [error] File "/home/fuiba/webapps/osqa/lib/python2.7/django/core/handlers/base.py", line 42, in load_middleware
[Tue Sep 24 10:37:09 2013] [error] raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Tue Sep 24 10:37:09 2013] [error] ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named base"
이것은 내 osqa.wsgi
: 에서
import os
import sys
sys.path.append('/home/fuiba/webapps/osqa/osqa')
from django.core.handlers.wsgi import WSGIHandler
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
application = WSGIHandler()
아파치 .conf 나는 가지고있다 WSGIScriptAlias
:
WSGISocketPrefix ${APACHE_RUN_DIR}
WSGIPythonPath /home/fuiba/webapps/osqa:/home/fuiba/webapps/osqa/lib/python2.7
WSGIScriptAlias//home/fuiba/webapps/osqa/osqa.wsgi
아파치 폴더 (
/home/fuiba/webapps/osqa/apache2
) 나는 이상한 이름을 가진 파일을 얻을에서 91,363,210
: $ {APACHE_RUN_DIR은}
이 무엇을 .47892.0.1.sock?
도움을 주시면 감사하겠습니다.
감사합니다.