Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
scss files for django
JavaScript CSS Other
branch: master
Failed to load latest commit information.
bootstrap_sass
.gitignore Updated gitgnore
LICENSE Update 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

Something went wrong with that request. Please try again.