I have a django 1.4.2 application with django-compressor 1.2 used to compress a smaller file.
I have fewer files in /static/css/home.less application. It outputs fewer files under static / CACHE / css / 5208013a00a2.css
When running locally (Debug = True, files are served by django), I get the correct answer. the following output in the html (template) file:
<link rel="stylesheet" href="/static/CACHE/css/5208013a00a2.css" type="text/css">
When running in deployment (Apache serves files) I have a bad answer. the following output in my html file:
<link type="text/less" rel="stylesheet" href="/adduplicator/static/css/home.less" charset="utf-8">
Files are created when deployed under static / CACHE / css / 5208013a00a2.css , so I assume there are no resolution problems. I am not mistaken in magazines.
some settings from settings.py:
COMPRESS_PRECOMPILERS = ( ('text/coffeescript', 'coffee --compile --stdio'), ('text/less', 'lessc {infile} {outfile}'), ) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder', )
Deployment is done through the fabric and creates the application under virtual env.
source share