【发布时间】:2012-01-19 09:59:59
【问题描述】:
我在 Ubuntu 10.04 LTS 上设置了环境来运行 Django 网站,但它似乎不想玩得很好。环境如下:
Python 2.6.5
Django 1.3.1
Gunicorn 0.13.4
Supvervisor 3.0
Nginx 0.7.65
Varnish 2.1
我为 Django 应用安装了以下相关模块:
django-appconf 0.4.1
django-compressor 1.1.1
django-smartagent 0.1.1
Coffee Script 1.2.0
Sass 3.1.12
一切正常启动,但我收到以下模板错误:
Caught FilterError while rendering: invalid option: --scss
我已将其缩小到我的settings.py 文件中的这个元组列表:
(('text/coffeescript', 'coffee --compile --stdio'),
('text/less', 'lessc {infile} {outfile}'),
('text/x-sass', 'sass {infile} {outfile}'),
('text/x-scss', 'sass --scss {infile} {outfile}'))
看起来好像最后一行是造成所有这些麻烦的原因。
我在 Ubuntu 11.10 上进行了相同的设置,并且运行良好。我不确定发生了什么。
【问题讨论】: