Skip to main content

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


Download files

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

Source Distribution

django-staticfiles-bootstrap-2.2.2.tar.gz (127.3 kB view details)

Uploaded Source

File details

Details for the file django-staticfiles-bootstrap-2.2.2.tar.gz.

File metadata

File hashes

Hashes for django-staticfiles-bootstrap-2.2.2.tar.gz
Algorithm Hash digest
SHA256 245222baa78a29d70206ec49cd980d02d72651cf7ff3de5415d5b80d6204fb76
MD5 cddec93ab9010a20e779297d5ae406f5
BLAKE2b-256 be3773ed5456b0025c1d30e97422a6c1b9a8e5132deda802ec1d09dcad23d7fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page