django-static-precompiler is avaiable through pip:
$ pip install django-static-precompiler
Add “static_precompiler” to INSTALLED_APPS setting.
Make sure that you have necessary compilers installed.
Optionally, you can specify the full path to compilers (see below).
In case you use Django’s staticfiles contrib app you have to add static-precompiler’s file finder to the
STATICFILES_FINDERSsetting, for example:
STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', # other finders.. 'static_precompiler.finders.StaticPrecompilerFinder', )
Note that by default compiled files are saved into
COMPILED folder under your
MEDIA_ROOT if you have no
STATIC_ROOT in your settings).
You can change this folder with
Note that all relative URLs in your stylesheets are converted to absolute URLs using your