Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot run Biostars out of the box: "lessc: command not found" #193
This is a clean install of Biostars (./biostars.sh init import run).
looks like the precompiler gets triggered once you turn debug off. If the lessc is not installed one needs to disable the django_compressor: http://django-compressor.readthedocs.org/en/latest/settings/
Add the following to your settings file:
does that solve the problem?
I have to retract my previous comment (Other issues prevented me from knowing that this issue was not fully resolved).
So, how can I compile the .less files without having lessc?
The way to compile less is to include the on-the-fly precompiler, less.js in the page.
The relevant line is located here:
when the template is debug mode the CSS is passed via the compile-on-the fly mode.
You could just replace the word 'debug' there with 1, making the first path active all the time.
I will look into adding a new variable that one would need to be explicitly set for the compression to take place rather than relying on solely the value of debug since that is used for many other purposes.