将 SASS/SCSS 与 Django 集成 [英] Integrate SASS/SCSS with Django
问题描述
我想在 Django 应用程序中使用 SASS/SCSS.
我点击了链接 https://bitbucket.org/synic/django-sass.我使用 sudo pip install sass 安装了 SASS.
当我运行 Python manage.py runserver 时,我收到错误
'sass' 不是有效的标签库:找不到模板库 sass,尝试 django.templatetags.sass
有人可以帮我吗?!
python sass (pip install sass) https://pypi.python.org/pypi/sass 是不同的来自 django-sass (https://bitbucket.org/synic/django-sass)>
从 https://bitbucket.org/synic/django-sass 下载 django sass 之后按照文档进行安装和设置.
I want to use SASS/SCSS with Django application.
I followed the link https://bitbucket.org/synic/django-sass. I installed SASS using sudo pip install sass.
When i run Python manage.py runserver,iam getting error as
'sass' is not a valid tag library: Template library sass not found, tried django.templatetags.sass
Can Anyone help me?!
python sass (pip install sass) https://pypi.python.org/pypi/sass is different from django-sass (https://bitbucket.org/synic/django-sass)
Download django sass from https://bitbucket.org/synic/django-sass after that install and setup as documented .
这篇关于将 SASS/SCSS 与 Django 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!