Django SASS Processor compiles SCSS files into CSS dynamically during development or offline for production. It integrates seamlessly with Django's staticfiles system and provides template tags for easy inclusion of compiled CSS in templates. The current version is 1.4.2, with minor releases occurring every few months, and major versions (like 1.0.0) introducing breaking changes less frequently.
pip install django-sass-processorVerified import paths — ran on the pinned version, not inferred.
Configure `django-sass-processor` by adding it to `INSTALLED_APPS` and defining `SASS_PROCESSOR_ROOT`. Then, load the `sass_tags` in your templates to reference your compiled SCSS files. Remember to run `python manage.py collectstatic` in production.
Update any scripts or commands that use `manage.py compilescss --use-processor-root` to `manage.py compilescss --use-storage`.
If you were using `SassS3Boto3Storage`, switch to using `S3Boto3Storage` directly from `django-storages` in your `STATICFILES_STORAGE` setting.
Ensure you have build tools installed: On Debian/Ubuntu, `sudo apt-get install build-essential`. On macOS, `xcode-select --install`. On Windows, install Visual C++ Build Tools (part of Visual Studio installer) or use WSL.
Ensure `SASS_PROCESSOR_ENABLED = True` (default in DEBUG mode). Clear your browser cache. For persistent issues, manually force recompilation by running `python manage.py compilescss --force`.