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

Problem with Sass 3 and django-css #15

Open
jasford opened this issue Jul 27, 2010 · 1 comment
Open

Problem with Sass 3 and django-css #15

jasford opened this issue Jul 27, 2010 · 1 comment

Comments

@jasford
Copy link

jasford commented Jul 27, 2010

I set up a new dev environment and did the standard "gem install haml" command to get the latest version, but it turns out sass is in version 3 now and has made some major syntax changes. I went through and updated my syntax to match only to discover that django-css won't compile using sass 3.

If you try to load a page that requires a .sass file, the browser hangs and never loads the page. Hitting reload results in the page loading, but without the css from your .sass file. Checking the .css that was created reveals that it is empty. Running "sass myfile.sass myfile.css" from the shell does just fine at compiling the sass to css, but django-css can't do it at run-time anymore. I even tried putting some sass code in a {% sass %} block directly in my template and that worked, but working with .sass files fails every time.

To make sure the new version of sass was the culprit, I rolled by my .sass changes, confirmed that everything was still broken, then did this: "gem uninstall haml"..."gem install haml --version 2.2.24" - after uninstalling and reinstalling with the old version of sass everything worked perfectly.

Not sure where the source of the problem is here, but I didn't have time to do any more troubleshooting and will be sticking with Sass 2 for now. My best guess is that there is some compatibility problem between django-css and Sass 3.

@ghost
Copy link

ghost commented May 22, 2011

The page also hangs on YUI. I'm using django_compressor now and it works perfectly with everything, even Django 1.3

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

1 participant