django使用mod_python的简单配置

Pubdate:2009-04-01 14:41:00    Categories:    1317 Views

在/etc/conf.d/apache2的APACHE2_OPTS中加入PYTHON。
在/etc/apache2/vhosts.d/00_default_vhost.conf中加入:
<Location "/">
PythonPath "sys.path + ['/var/www/localhost/htdocs']"
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonOption django.root /mysite
PythonDebug On
</Location>


Comments(0)

相关文章

Leave You Comment
请输入左边图片中的字符
无觅相关文章插件