Django WSGI Script Won't load due to a Python issue的Django +阿帕奇+ mod_wsgi的cuasing 500內部服務器錯誤(日誌附後)
研究了一天之後,還是沒能解決的問題。 服務器聯機,在使用virtulenv 的Windows 8-64bit,python34,WAMP服務器Apache的64位
裏面的conf使用網站:
Listen 8080
NameVirtualHost 127.0.0.1:8080
<VirtualHost *:8080>
ServerAdmin [email protected]
ServerName 192.168.0.101:8080
DocumentRoot "C:/wamp/www/venv/testweb10/testweb10"
</VirtualHost>
WSGIScriptAlias/"C:/wamp/www/venv/testweb10/testweb10/wsgi.py"
WSGIPythonPath "C:/wamp/www/venv/Lib/site-packages"
<Directory "C:/wamp/www/venv/testweb10">
<Files wsgi.py>
Order deny,allow
Require all granted
</Files>
</Directory>
Settings.py
DEBUG = True
ALLOWED_HOSTS = ['testweb10']
hosts
127.0.0.1 testweb10
我懷疑,如果蟒蛇兼容性問題
用戶變量路徑:
請幫助
mod_wsgi嘗試解析您的wsgi.py腳本,但失敗。該文件的內容是什麼? – SaeX 2015-04-04 12:08:52
進口OS 從django.core.wsgi進口get_wsgi_application os.environ.setdefault( 「DJANGO_SETTINGS_MODULE」, 「testweb10.settings」) 應用= get_wsgi_application() – 2015-04-04 12:13:20
感謝Saex,你提醒我。 – 2015-04-04 12:22:28