问题遇到的现象和发生背景
django+uwsgi+nginx
网页调用myqr库生成二维码,权限报错,去root下找不到myqr,
问题相关代码,请勿粘贴截图
运行结果及报错内容
PermissionError at /qr_run
[Errno 13] Permission denied: '/root/.myqr'
Request Method: POST
Request URL: http://192.168.130.133:8000/qr_run
Django Version: 4.0.1
Exception Type: PermissionError
Exception Value:
[Errno 13] Permission denied: '/root/.myqr'
Exception Location: /usr/lib/python3.8/os.py, line 223, in makedirs
Python Executable: /usr/local/bin/uwsgi
我的解答思路和尝试过的方法
root@ubuntu:/usr/local/lib/python3.8/dist-packages/MyQR# chmod +x myqr.py 修改了权限仍然不行