按上面的顺序安装就可以了
然后配置下apache,在httpd.conf中
把DocumentRoot、相应的Directory设置成web根目录
加一行:LoadModule python_module modules/mod_python.so
在把下面的东西加到最后:
<Location "/">
SetHandler python-program
PythonPath "['F:\web\django'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE wap.settings
PythonDebug On
</Location>
<Location "/includes/">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png)$">
SetHandler None
</LocationMatch>
No comments:
Post a Comment
您的评论将使我blog更有动力~