django-sass-processor
SASS processor to compile SCSS files into *.css, while rendering, or offline.
What it is and what it does
django-sass-processor is a Django app that compiles SASS/SCSS files into CSS during template rendering, without requiring external build tools, file watchers, or IDE plugins. It provides a templatetag `sass_src` that works in both Django and Jinja2 templates, and can also be used directly in Python code via the Media class for forms and admin. The processor caches compiled output and only recompiles when source files are modified, making it suitable for development workflows.
The package supports configuration through Django settings for include paths, compiler precision, and output style. It can also generate sourcemaps for easier debugging. For production, SCSS files can be precompiled offline using a management command, eliminating the need for a compiler in the deployed environment. The app automatically discovers SCSS partials in installed Django apps' static folders, reducing boilerplate configuration.
Use it for:
- Develop Django projects with SCSS without running a separate daemon or build tool.
- Reference SCSS files directly in templates and have them compile to CSS on demand during development.
- Configure SASS variables and paths in Django settings.py instead of maintaining separate SCSS configuration files.
- Debug stylesheet errors directly in Django's development server console with sourcemaps.
- Precompile SCSS offline and deploy only CSS to production, avoiding compiler as a runtime dependency.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compiles SASS/SCSS files to CSS on the fly during Django template rendering, eliminating the need for external build tools or file watchers.
Yes. The package is actively maintained, has no runtime dependencies, supports current Django versions (3.2 through 5.2) and Python versions (3.8 through 3.13), carries no known vulnerabilities, and solves a real friction point in Django development. Install it if you use SCSS in templates and want to avoid external build-tool overhead; skip it only if your project already has a mature build pipeline in place.
Install
django-sass-processor on PyPI
pip
pip install django-sass-processoruv
uv add django-sass-processorpoetry
poetry add django-sass-processorInstalling django-sass-processor
Before you install
Low friction install with no runtime dependencies. Active maintenance since 2015, last commit 2026-03-09, and supports Django 3.2, 4.2, 5.0, 5.1, 5.2 and Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13.
License in practice
MIT license permits permissive use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install django-sass-processor
# In settings.py
INSTALLED_APPS = ['sass_processor', ...]
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'sass_processor.finders.CssFinder',
]
# In template
{% load sass_tags %}
<link rel="stylesheet" href="{% sass_src 'path/to/file.scss' %}">
A SASS compiler is required during development; offline compilation via manage.py compilescss is available for production deployment.
Verify before relying
- Whether a system SASS compiler must be installed separately or is bundled with the package.
- Performance characteristics when compiling large or deeply nested SCSS file hierarchies with many imports.
- Whether django-compressor is required for offline compilation or only optional.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 414 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 251,958/month — #8,563 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_sass_processor-1.4.2-py3-none-any.whl
Keywords: django, sass
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
django-libsassIntegrates Sass compilation into Django…
permissive · top 5,000 on PyPI
django-settings-exportProvides a Django template context processor…
permissive · top 15,000 on PyPI
pyScssCompiles Sass/SCSS stylesheets to CSS,…
permissive · top 15,000 on PyPI
libsassCompiles Sass and SCSS stylesheets to CSS…
permissive · top 5,000 on PyPI
django-compressorDjango Compressor combines, minifies, and…
permissive · top 5,000 on PyPI
django-npmdjango-npm integrates npm package management…
permissive · top 15,000 on PyPI
django-pipelinedjango-pipeline bundles and compresses CSS and…
permissive · top 15,000 on PyPI
django-tailwindIntegrates Tailwind CSS into Django projects…
permissive · top 15,000 on PyPI
django-webpack-loaderIntegrates Webpack-compiled bundles into Django…
permissive · top 5,000 on PyPI
djangocms-admin-styleProvides styled CSS templates and admin…
permissive · top 15,000 on PyPI