Django_compressor error with Sass. Cannot @import files

963 Views Asked by At

I am trying to use Sass to compile a style.scss file with django_compressor.

I have found that Sass works on the command line if I am in the css directory, but if I am in any other directory it produces the same error as below.

Caught FilterError while rendering: Syntax error: File to import not found or unreadable: helpers.scss
Load path: .
on line 28 of d:\siphon\siphon\static\css\style.scss

How can I fix this error?

1

There are 1 best solutions below

1
On BEST ANSWER

take a look at Compass. It compiles your sass to a css and only then you get compressor to do it's job.