我有一个 apache 实例,其中有以下内容
WSGIPythonPath /production/somelocation/django12/lib/python2.4/site-packages/
<VirtualHost 192.168.1.1:443>
WSGIScriptAlias / /opt/project.wsgi
.....
我的 Django 1.5 应用程序 apache 配置看起来像,
WSGIPythonPath /production/somelocation/django15/lib/python2.7/site-packages/
<VirtualHost 192.168.1.2:443>
....
WSGIScriptAlias / /opt/project2.wsgi
我的 /opt/project.wsgi 看起来像
import os
import sys
# django1.2 virtualenv
import site
site.addsitedir("/production/somelocation/django12/lib/python2.4/site-packages")
.....
但是,当我访问该站点时,我仍然会得到我的默认 django (1.5) 实例。我错过了什么?