Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Bootstrap sass file for django

Project description


.. image::

.. image::

django-bootstrap-sass uses jlong/sass-twitter-bootstrap_ to allow more
control over bootstrap stylesheets by using scss features.

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


pip install django-bootstrap-sass



# ...


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:
.. _django-contrib-static-files:
.. _django-compressor:
.. _django-supervisor:
.. _watchdog:
.. _jlong/sass-twitter-bootstrap:

Project details

Download files

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

Files for django-bootstrap-sass, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django-bootstrap-sass-1.0.0.tar.gz (204.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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