Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

scss files for django

branch: master
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

Docutils System Messages

System Message: ERROR/3 (<string>, line 13); backlink

Unknown target name: "sass-twitter-bootstrap".

System Message: ERROR/3 (<string>, line 54); backlink

Unknown target name: "django-contrib-static".
Something went wrong with that request. Please try again.