[Django]-Errno 13 Permission denied in django-wkhtmltopdf

4👍

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

0👍

What worked for me was:

  1. Download the file from oficial page
  2. From the file you downloaded extract the /bin/wkhtmltopdf file
  3. Place it somewhere at your project
  4. In settings.py specify the FULL path to the binary file like:

    WKHTMLTOPDF_CMD = ‘/home/stefanos/vEnvs/assembla/lib/python2.7/site-packages/wkhtmltopdf/wkhtmltopdf’

Leave a comment