Skip to main content

Bootstrap sass file for django

Project description

---------------------
django-bootstrap-sass
---------------------


.. image:: https://pypip.in/v/django-bootstrap-sass/badge.png
:target: https://pypi.python.org/pypi/django-bootstrap-sass

.. image:: https://pypip.in/d/django-bootstrap-sass/badge.png
:target: https://pypi.python.org/pypi/django-bootstrap-sass


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

* sass_
* django-contrib-static_
* django-compressor_
* django-supervisor_


.. _sass: http://sass-lang.com/download.html
.. _django-contrib-static-files: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/
.. _django-compressor: https://github.com/jezdez/django_compressor
.. _django-supervisor: https://github.com/rfk/django-supervisor
.. _watchdog: https://github.com/gorakhargosh/watchdog
.. _jlong/sass-twitter-bootstrap: https://github.com/jlong/sass-twitter-bootstrap

Project details


Release history Release notifications

History Node

1.0.0

History Node

0.0.10-alpha

History Node

0.0.9-alpha

History Node

0.0.8-alpha

History Node

0.0.7-alpha

History Node

0.0.7a0

This version
History Node

0.0.6-alpha

History Node

0.0.5-alpha

History Node

0.0.4-alpha

History Node

0.0.3-alpha

History Node

0.0.1-alpha

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-bootstrap-sass-0.0.6-alpha.tar.gz (139.5 kB) Copy SHA256 hash SHA256 Source None Nov 19, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page