i-e1eg
Last Updated: February 25, 2016
·
1.059K
· tijs
Starbird crop2

Installing Less into your virtualenv

If you need the lessc command on your server so you can compile and compress your less into css on the fly or using something like django-compressor in your deployment you usually need node to be installed globally. Since this can be a pain if you don't have full privileges on your server this could be a nice workaround:

https://github.com/elbaschid/virtual-less

With that and it's sister project: https://github.com/elbaschid/virtual-node installed you should be able to add these despendencies to your requirements.txt and then run lessc from your virtualenv on the server.

Say Thanks
Respond