在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>
转载于:https://www.cnblogs.com/sulpha/archive/2010/11/10/1874113.html