apache下django配置【原创】

在http.conf中加入
<Location "/mysite/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE settings
    PythonOption django.root /mysite
    PythonDebug On
    PythonPath "['/srv/www/htdocs/mysite'] + sys.path"
</Location>

posted on 2010-11-10 18:35  sulpha  阅读(153)  评论(0编辑  收藏  举报

导航