在CentOS中部署Django – 内部服务器错误500
我的系统: CentOS: 5.5 x86_64 GNU/Linux Apache/2.2.16 mod_wsgi-3.2-1.el5.x86_64 python 2.6.6 django 1.2.3 我的文件example.wsgi: #!/usr/local/bin/python import os, site, sys # add the virtual environment path site.addsitedir('/home/admin/domains/example.com/env/lib/python2.6/site-packages') site.addsitedir('/home/admin/domains/example.com/myproject') site.addsitedir('/home/admin/domains/example.com') # fix markdown.py (and potentially others) using stdout sys.stdout = sys.stderr #Calculate the path based on the location of the WSGI script. project = os.path.dirname(__file__) workspace = os.path.dirname(project) sys.path.append(workspace) […]