Errno 13权限在django-wkhtmltopdf中被拒绝 [英] Errno 13 Permission denied in django-wkhtmltopdf

查看:317
本文介绍了Errno 13权限在django-wkhtmltopdf中被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用django-wkhtmltopdf生成PDF文档. 我描述了通往django-wkhtmltopdf的清晰路径.

I use django-wkhtmltopdf to generate PDF documents. I described a clear path to the django-wkhtmltopdf.

WKHTMLTOPDF_CMD = '/home/vagrant/envs/vagrant/lib/python2.7/site-packages/wkhtmltopdf'

我得到了错误:

[Errno 13] Permission denied

django-wkhtmltopdf路径中的权限:

Permissions in the path to the django-wkhtmltopdf:

drwxrwxr-x 3 vagrant vagrant Feb 17, 4096 7:32 wkhtmltopdf

推荐答案

您需要自行安装 wkhtmltopdf 并指定二进制文件的路径(在/usr/bin或/usr/local/bin中).

You need to install wkhtmltopdf itself, and specify the path to the binary (either in /usr/bin or /usr/local/bin).

这篇关于Errno 13权限在django-wkhtmltopdf中被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆