Apache配置django

<VirtualHost *:80>

DocumentRoot "/var/www/ieecas/ieecas"

ServerName www.blog.com 虚拟主机域名

<Location "/">

SetHandler python-program

PythonHandler django.core.handlers.modpython

SetEnv DJANGO_SETTINGS_MODULE ieecas.settings

#PythonOption django.root /

PythonDebug On

PythonPath "['/var/www/ieecas'] + sys.path"

</Location>

</VirtualHost>

你可能感兴趣的:(apache)