django-pipeline を使用しようとしていますが、生成された静的ファイルに対して 500 エラー応答が返されます。これが私の構成です。
STATIC_URL = '/static/'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder',
'pipeline.finders.CachedFileFinder',
)
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
PIPELINE_ENABLED = True
PIPELINE_DISABLE_WRAPPER = True
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor'
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor'
PIPELINE_YUGLIFY_BINARY = '/opt/local/bin/uglifyjs'
/static
たとえば、パイプラインのファイルには到達/static/js/file1.js
でき/static/js/file2.js
ないのに、下にある他の静的ファイルに到達できる理由がわかりません/static/js/scripts.js
。
(開発サーバーで Django 1.5.2 を実行しています)
編集: パイプライン 1.3.15 (私は 1.3.14 を使用していました) にアップグレードした後、動作するようになりました!