krom-xr/django-sass
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
1. install sass (in ubuntu 11.10 sudo apt-get install libhaml-ruby) 2. clone this repo to your django-project folder 3. in settings.py add 'django-sass' to INSTALLED_APPS 4. in settings.py add USE_SASS = True 5. in template file add the following strings: a) {% load sass %}{% load static %} b) <link href="{% get_static_prefix %}{% sass 'path/to/file.css' %}" /> if USE_SASS == True, script will be trying to find 'path/to/file.sass' and if it exists - compile it and return 'path/to/file.css' if USE_SASS == False, script return only return 'path/to/file.css' IMPORTANT!: if DEBUG == False, script also return 'path/to/file.css' (no compile sass to css) tested in ubuntu only
About
sass with django
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published