Skip to content

kevinetienne/django-bootstrap-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

scss files for django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published