scss files for django
Python Shell
Switch branches/tags
Nothing to show
Latest commit e734dfa Oct 28, 2015 @KevinEtienne Bump to 1.0.0
Permalink
Failed to load latest commit information.
bootstrap_sass
.gitignore
LICENSE
NOTICE
README.rst
setup.py
update-bootstrap.sh

README.rst

django-bootstrap-sass

https://pypip.in/v/django-bootstrap-sass/badge.png https://pypip.in/d/django-bootstrap-sass/badge.png

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.

Install

pip install django-bootstrap-sass

Setup

Django settings.py

INSTALLED_APPS = (
# ... 'django.contrib.staticfiles', 'bootstrap_sass',

)

Usage

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..)

Integration example