diff options
author | mattack108 <matt.lenc@gmail.com> | 2013-09-20 11:39:46 +0100 |
---|---|---|
committer | mattack108 <matt.lenc@gmail.com> | 2013-09-20 11:39:46 +0100 |
commit | 45eab831e2ad1f3f73560527ed5f618bfb62177f (patch) | |
tree | ff58a6f035e3412f81a7fb98cfb159cd9d5bf14a /README.rst | |
parent | 9c5d3def72cafdcfd85784c53836421943e83277 (diff) | |
download | django-wkhtmltopdf-45eab831e2ad1f3f73560527ed5f618bfb62177f.tar.gz django-wkhtmltopdf-45eab831e2ad1f3f73560527ed5f618bfb62177f.tar.bz2 django-wkhtmltopdf-45eab831e2ad1f3f73560527ed5f618bfb62177f.zip |
Fix tests for Travis by obtaining the WKHTMLTOPDF_CMD from env vars.
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -29,7 +29,7 @@ Run ``pip install django-wkhtmltopdf``. Add ``'wkhtmltopdf'`` to ``INSTALLED_APPS`` in your ``settings.py``. -By default it will execute the first wkhtmltopdf command found on your ``PATH``. +By default it will execute the first ``wkhtmltopdf`` command found on your ``PATH``. If you can't add wkhtmltopdf to your ``PATH``, you can set ``WKHTMLTOPDF_CMD`` to a specific execuatable: @@ -38,6 +38,10 @@ e.g.: in ``settings.py``:: WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf' +or alternatively as env variable:: + + export WKHTMLTOPDF_CMD=/path/to/my/wkhtmltopdf + You may also set ``WKHTMLTOPDF_CMD_OPTIONS`` in ``settings.py`` to a dictionary of default command-line options. |