我已经使用apache2和wsgi在服务器上部署了一个Django项目,它显示了一个错误,我可能知道它为什么会出现。在
错误:
IOError at /
[Errno 13] Permission denied: 'bnr_code.csv'
Request Method: GET
Request URL: http://93.188.167.63:8080/pep_learn/
Django Version: 1.10.8
Exception Type: IOError
Exception Value:
[Errno 13] Permission denied: 'bnr_code.csv'
Exception Location: /home/pep_web/binaryDs/views.py in <module>, line 6
Python Executable: /usr/bin/python
Python Version: 2.7.12
我尝试过一些诽谤性的解决方案,如下所示:
chmod 777政治公众人物网/
chmod 771政治公众人物网/
sudo chown:www data pep_web/
但什么都没用
这是使用'bnr'的文件_代码.csv'
^{pr2}$请帮助您检查http://93.188.167.63:8080/pep_learn/处的错误
不要使用文件的相对路径,请使用绝对路径。此问题在mod\wsgi的文档中有解释。在
通过执行以下操作计算文件的位置:
相关问题 更多 >
编程相关推荐