Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

3.0.3

History Node

3.0.2

History Node

3.0.0

History Node

2.3.2

History Node

2.3.1

History Node

2.3.0

History Node

2.2.2

History Node

2.2.1

History Node

2.2.0

History Node

2.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-staticfiles-bootstrap-3.0.3.tar.gz (193.3 kB) Copy SHA256 Checksum SHA256 Source Dec 6, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting