3

cssの設定はこちら

PIPELINE_CSS = {
    'base': {
        'source_filenames': (
            'scss/core.scss',
        ),
        'output_filename': 'css/min.css',
    },
   'ie8': {
        'source_filenames': (
            'css/ie-8-overrides.css',       
        ),
        'output_filename': 'css/ie8.css',
    },
}

どういうわけかそれは不平を言う:

ValueError: The file 'admin/css/base.css' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x10c34add0>.
4

1 に答える 1

4

見つけたのSTATICFILES_FINDERSは、組み込みのdjangoがないため、静的ファイルを収集するときに、管理者からcssとjsをコピーしていませんでした。

STATICFILES_FINDERS = (
    'pipeline.finders.FileSystemFinder',
    'pipeline.finders.AppDirectoriesFinder',
    'pipeline.finders.PipelineFinder',
    'pipeline.finders.CachedFileFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder', # added this and worked
)
于 2014-03-22T20:01:45.743 に答える