WebFaction
Community site: login faq

Hi,

I've succesfully installed lessc and node (using this guide).

-bash-4.1$ which lessc
~/opt/node/bin/lessc
-bash-4.1$ which node
~/opt/node/bin/node

However, Django compressor keeps throwing errors. I've tried different parameters (paths) in settings.py for COMPRESS_PRECOMPILERS = (...), being:

  • 'text/less', 'lessc {infile} > {outfile}' . This yields a FilterError at /: /bin/sh: lessc: command not found
  • 'text/less', '~/opt/node/bin/lessc {infile} > {outfile}' . This yields a FilterError at /: /usr/bin/env: node: No such file or directory

How can I solve this? Would be great if I have a generic solution for this, would love to use lessc in all my Django projects.

Kind regards,

Sander

asked 23 Aug '15, 09:25

nl_sander
1316
accept rate: 0%

25 Aug '15, 11:20

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×15
×3
×3

question asked: 23 Aug '15, 09:25

question was seen: 3,027 times

last updated: 25 Aug '15, 11:20

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM