We use the django-compressor and django.contrib.staticfiles application, and we have problems when starting the django development server and working with our SCSS: the wrong SCSS files were compiled. Versions found in STATIC_ROOT/app are obtained, not versions in the / static application. This ensures that changes to SCSS in app/static not reflected in compiled CSS.
Removing everything in STATIC_ROOT/app fixes the problem, but causes some confusion if collectstatic is executed for some reason.
Is there a way to make sure that the app / static files are compiled, and not any existing STATIC_ROOT / app files?
We are using django-compressor 1.4 with django 1.6, and the following settings are used in the django settings file:
STATICFILES_FINDERS = ( "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder", 'compressor.finders.CompressorFinder', ) COMPRESS_PRECOMPILERS = ( ("text/x-scss", 'sass --scss'), ) STATICFILES_DIRS = [] #default STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
source share