problem with relative path in less file #296

Closed
drojas opened this Issue Aug 2, 2012 · 2 comments

Projects

None yet

3 participants

@drojas
drojas commented Aug 2, 2012

I'm using django-compressor with lessc in order to compile twitter-bootstrap less framework.

The issue is the following:

The compressor is not converting the relative path pointing to an image file to it's absolute path... the result is that the django server is trying to get the file from the CACHE folder:

[01/Aug/2012 21:12:16] "GET /static/CACHE/img/glyphicons-halflings.png HTTP/1.1" 404 1706

If I change manually the relative path:

@iconSpritePath: "../img/glyphicons-halflings.png";

to:

@iconSpritePath: "/static/bootstrap/img/glyphicons-halflings.png";

The image is loaded, but this is not a DRY solution.

I've reproduced this with 1.1.2 and 1.2a2

Cheers,
David

@reinout
reinout commented Aug 6, 2012

This is probably related to #226, I think.

This means that it probably works fine in production, when you collect all the static files in that CACHE dir and serve it from there? And that it fails in development?

@karyon karyon added a commit to karyon/django-compressor that referenced this issue Sep 24, 2015
@karyon karyon Apply CssAbsoluteFilter to precompiled css even when compression is d…
…isabled

fixes #226, fixes #296
b3e7253
@karyon karyon added a commit to karyon/django-compressor that referenced this issue Sep 24, 2015
@karyon karyon Apply CssAbsoluteFilter to precompiled css even when compression is d…
…isabled

fixes #226, fixes #296
6ad81c0
@karyon karyon added a commit to karyon/django-compressor that referenced this issue Sep 24, 2015
@karyon karyon Apply CssAbsoluteFilter to precompiled css even when compression is d…
…isabled

fixes #226, fixes #296
0d159cb
@diox diox closed this in #653 Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment