Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS relative url's aren't resolved correctly when running in DEBUG mode. #20

Open
yourcelf opened this issue Nov 9, 2012 · 3 comments

Comments

@yourcelf
Copy link
Owner

yourcelf commented Nov 9, 2012

This is a result of django-compressor/django-compressor#226. The symptom is that any assets referenced via "url(...)" in a css/sass file will not resolve correctly when running in DEBUG=True.

A clumsy workaround is to symlink "img" and "fonts" static directories into site_static/CACHE:

cd site_static/CACHE/
ln -s ../../static/img .
ln -s ../../static/fonts .

This problem should not exist when you're in production mode.

@kottenator
Copy link

This bug is actual for me too.
But I don't want to make symlinks - I have many Django apps and each has own /static/

@sunshineo
Copy link

+1
I'm on Amazon s3, I cannot make symlinks.

@rmoorman
Copy link

As a "workaround" I set the "COMPRESS_OUTPUT_DIR" to an empty string. I could not verify, that this will not introduce other problems though, but it helped in my particular situation (not using btb btw.).

COMPRESS_OUTPUT_DIR = ''

Furthermore this obviously does not resolve the real issue with compressor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants