下载mod_python (http://www.djangoproject.com/r/mod_python/)
修改apache配置 添加python模块
LoadModule python_module /usr/lib/apache2/modules/mod_python.so
在修改站点配置(site-enable中)
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
PythonPath "['/path/to/django/project'] + sys.path"
</Location>
1400




被折叠的 条评论
为什么被折叠?



