我已将管道配置如下:
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder',
)
# Static files storage
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
# Pipeline JS compressor
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.jsmin.JSMinCompressor'
PIPELINE_JS = {
'website-main': {
'source_filenames': (
'shared/jquery/jquery-1.10.2.min.js',
'shared/bootstrap/js/bootstrap.min.js',
'shared/jquery/jquery.cookie.js',
),
'output_filename': 'pipeline-compressed/website-main.js',
}
}
当我{% compressed_js 'website-main' %}
在我的模板中使用时,我会为在PIPELINE_JS
. 我不应该看到一个带有src="pipeline-compressed/website-main.js"
.