I am using this library to run lesscss on my django project : https://github.com/andreyfedoseev/django-less/
It works fine on Mac and Linux but I am getting an error on Windows and can't find a solution.
Here's the django error :
Request Method: GET
Request URL: localhost:8000
Django Version: 1.4.5
Exception Type: WindowsError
Exception Value: 2 The system cannot find the specified file
Exception Location: C:\Python27\lib\subprocess.py in _execute_child, line 896
Python Executable: C:\Python27\python.exe
Python Version: 2.7.3
Python Path:
['C:\\soundgathr\\GemsBand',
'C:\\Windows\\system32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages']
Server time: Fri, 22 Mar 2013 23:42:11 +0100
Error during template rendering
In template C:\soundgathr\GemsBand\static\templates\blocks\head.html, error at line 7
Here is my call to less in my template :
<link rel="stylesheet" href="{% less "less/common.less" %}" />
and my settings.py :
# Less path settings
LESS_OUTPUT_URL = os.path.join(MEDIA_URL, 'LESS_CACHE')
LESS_OUTPUT_DIR = os.path.join(MEDIA_ROOT, 'LESS_CACHE')
Again, it works fine on Mac & Linux.
I think it's an issue of paths and slash, backslash. Any ideas?