Skip to main content

django-staticfiles-bootstrap

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 files for django-staticfiles-bootstrap 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-staticfiles-bootstrap 3.0.3
File Size Uploaded
django-staticfiles-bootstrap-3.0.3.tar.gz 193.3 kB Details

Release files / django-staticfiles-bootstrap-3.0.3.tar.gz

Download URL django-staticfiles-bootstrap-3.0.3.tar.gz
Size 193.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3823e50436fb952b5b3c7da4fdb48f8396257fddff570f53b65eb957869e8929
BLAKE2b-256 checksum
How to use checksums
24eea383fb32a6187e8b7070209b9a71d83e229cabdca82ef22699ae75d968bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

3.0.3 This release

1 release file

3.0.2

1 release file

3.0.0

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page