使用Apache2的Django WSGI错误

时间:2017-02-18 03:53:35

标签: django apache mod-wsgi wsgi

我使用Apache2和wsgi在VPS中运行Django,但我得到了一个名为Django'的模块。我访问域时出错,可能出错?这是我在apache2中的default.conf,

<VirtualHost *:80>
. . .

Alias /static /home/sammy/myproject/static
<Directory /home/sammy/myproject/static>
    Require all granted
</Directory>

<Directory /home/sammy/myproject/myproject>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess myproject python-home=/home/sammy/myproject/myprojectenv python-path=/home/sammy/myproject
WSGIProcessGroup myproject
WSGIScriptAlias / /home/sammy/myproject/myproject/wsgi.py

0 个答案:

没有答案