Skip to content

Instantly share code, notes, and snippets.

@thomasyip
Last active August 29, 2015 14:14
Show Gist options
  • Save thomasyip/79094ee3142bf1c15720 to your computer and use it in GitHub Desktop.
Save thomasyip/79094ee3142bf1c15720 to your computer and use it in GitHub Desktop.
django-pipeline configuration (a SASS / Compass folder per app)
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
PIPELINE_COMPILERS = (
'pipeline_compass.compass.CompassCompiler',
)
PIPELINE_CSS = dict(zip(PROJECT_APPS, [{
'source_filenames': (
(app + '/sass/*.scss'),
),
'output_filename': (app + '/css/' + app + '.css')
}
for app in PROJECT_APPS
if os.path.exists(os.path.join(BASE_PATH, app, 'static', app, 'sass'))])
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment