Using SASS with Django

A few months ago I worked on a Rails application and got acquainted with SASS. I found that I really prefer using SASS over CSS to the extent that it’s worth the overhead of learning another tool’s quirks. Here, I’ll describe what worked for me using SASS with Django.

First, if you haven’t installed Rails, walk through this

Next, in your Django project, create a “gemset”, which is something like a virtualenv in Python. Run this command and supply your own project name,

$ rvm gemset create 
$ rvm gemset use 
$ gem install sass

Then, test the install by checking the version of SASS.

$ sass -v

Now, you can set up an .rvmc
file so that whenever you navigate to your project, Ruby will know which version and gemset you are using. (Remember to supply your own project name.)

rvm 2.4.0@
责编内容来自:Connor Johnson (源链) | 更多关于

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Using SASS with Django

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录