4

I've configured django-pipeline as follows:

PIPELINE = {
    'PIPELINE_ENABLED': True,
    'COMPILERS': (
        'pipeline.compilers.sass.SASSCompiler',
    ),
    'STYLESHEETS': {
        'common': {
            'source_filenames': (
                'sass/common/styles.scss',
            ),
            'output_filename': 'css/common/styles.css',
        }
    }
}

I ran collectstatic and started the server in debug mode to see if everything's set up properly. I can access all my images and scripts, but not the compiled CSS file. My static settings:

STATIC_ROOT = os.environ.get('DJANGO_STATIC_ROOT', os.path.join(BASE_DIR, '_static'))
STATIC_URL = '/static/'
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'pipeline.finders.PipelineFinder',
)

Some more observations:

How can I make staticfiles find the compiled CSS file?

Pieter
  • 31,619
  • 76
  • 167
  • 242

0 Answers0