Twitter Bootstrap staticfiles for django
Project description
Easily include twitter bootstrap in your django apps
Installation
pip install django-staticfiles-bootstrap
Make sure your django project is configured to use staticfiles, then add this to your INSTALLED_APPS
INSTALLED_APPS += [‘django-staticfiles-bootstrap’,]
Usage
You can use this in two different ways in your templates
### STATIC_URL
<link href=”{{ STATIC_URL }}bootstrap/css/bootstrap.css” rel=”stylesheet”> <script src=”{{ STATIC_URL }}bootstrap/js/bootstrap.js”></script>
### static template tag
{% load static from staticfiles %} <link href=”{% static “bootstrap/css/bootstrap.min.css” %}” rel=”stylesheet”>
Plugins
If you want to use the JavaScript plugins, you will need jQuery. For that, I suggest django-staticfiles-jquery.
Code prettifying requires Google code prettify. For that, I suggest django-staticfiles-google-code-prettify.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-staticfiles-bootstrap-2.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60424a3bbb8dde41ef1736db38da654f9a32b3efa53794103560a42ffba7b64a |
|
MD5 | 4fcb76e3b4fd75809e893edd6690bdb3 |
|
BLAKE2b-256 | 7e06ce9bed52fb398f3047f565f1f8faac6df75387d062d20e5786ebba06c6c7 |