拒绝许可“没有”_代码.csv'"?

2024-05-22 02:54:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经使用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/处的错误


Tags: csvdjangohttpbnrversionrequest错误exception