django 403 Forbidden您无权访问(窗口)

时间:2018-07-09 14:28:40

标签: django

实际上很多人有相同的错误。我尝试搜索并申请,但所有解决方案均失败。请帮助我

我在Windows中使用apache + django 这是我的htdoc.conf ...和我的项目

C:\ url \ mysite \ mysite \ wsgi.py              \ po \ views.py

htdoc.conf

LoadModule wsgi_module“ C:/Users/Administrator/AppData/Local/Programs/Python/Python35-32/Lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win32.pyd” LoadFile“ c:/users/administrator/appdata/local/programs/python/python35-32/python35.dll”

WSGIPythonHome“ c:/ users / administrator / appdata / local / programs / python / python35-32” WSGIPythonPath“ C:/ urlconverter / mysite”


    服务器名称11.31.31.41     ServerAlias 11.31.31.41     WSGIScriptAlias /“ C:/url/mysite/mysite/wsgi.py”

<Directory "C:/url/mysite/mysite">
    <Files wsgi.py>
        Order allow,deny
        Allow from all
    </Files>
</Directory>

0 个答案:

没有答案