我在使用压缩后附加的模板标签时使用django-compressor 1.1.2
withDjango 1.4
compress
PROJECT_PATH
STATIC_URL
/static/Users/sultan/.virtualenvs/mediabox/somedia/somedia/public/media/media-cache/compressor/css/1d7cd4216904.css
当我没有设置 COMPRESS_OUTPUT_DIR = os.path.join(MEDIA_CACHE, 'compressor')
输出看起来像
/static/CACHE/css/1d7cd4216904.css
设置
STATICFILES_FINDERS = (
...
'compressor.finders.CompressorFinder'
)
COMPRESS_ENABLED = True
COMPRESS_OUTPUT_DIR = os.path.join(MEDIA_CACHE, 'compressor')
我的配置有什么问题?
谢谢,
苏丹