在/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>
没有评论:
发表评论