django-bootstrap-sass uses jlong/sass-twitter-bootstrap_ to allow more control over bootstrap stylesheets by using scss features.
Note: You'll need to install a sass preprocessor such as django-compressor to be able to include sass file into your django project and a tool to collect your static files such as django-supervisor or watchdog.
pip install django-bootstrap-sass
Django settings.py
- INSTALLED_APPS = (
- # ... 'django.contrib.staticfiles', 'bootstrap_sass',
)
To include sass file
<link rel="text/x-scss" href="{{ STATIC_URL }}stylesheets/bootstrap.scss" type="text/css" charset="utf-8">
To include javascripts file:
<script src="{{ STATIC_URL }}javascripts/{{ module }}.js"></script>
Where {{ module }} is one of bootstrap module (tab, affix..)