Search code examples
djangocompass-sassblueprint-css

Best method for adding compass to a django project


What's the preferred or best method for integrating compass with susy or blueprint into a django project?


Solution

  • Your best bet is to use django-css, a fork of django-compressor which also does css compilation of SASS. Once you have that plugged in, you can use compass, susy and blueprint as normal, and they will be compiled by django whenever it detects an updated version of the source files.

    EDIT: If you are deploying on a pure python host such as ep.io, you will want to research how easily these build into cleverCSS (Pure python SASS&SCSS compiler)

    EDIT 2:

    This info has dated. django-compressor is now the best option as it has the preprocessing facilities built in, and it will be able to bundle up the files for you too ;)