django使用mod_python的简单配置

发表时间:2009-04-01 14:41:00    分类:    1475 阅读

在/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>


评论(0)

相关文章

暂时没有文章!
评论这篇文章
请输入左边图片中的字符