0

オープンソースの Django アプリケーション ( OSQA )をインストールしようとしていますが、次のエラーが発生します。

[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()

httpd.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

apache2 フォルダー ( /home/fuiba/webapps/osqa/apache2) で、奇妙な名前のファイルを取得します: ${APACHE_RUN_DIR}.47892.0.1.sock

それは何ですか?

どんな助けでも大歓迎です。
ありがとうございました!

4

1 に答える 1