Skip to main content
Help us improve Python packaging – donate today!

A collection of Bootstrap static files.

Project Description

Bootstrap 4.0.0 jQuery 3.3.1 Font Awesome 5.0.6

Bootstrap and optional Font Awesome static files ready for the picking.

Also ships the latest jQuery compatible with Bootstrap, for optional inclusion.

Install

pip install django-bootstrap-static

Configuration

To pickup Bootstrap static files, simply include 'bootstrap', and optionally 'fontawesome', in your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    'bootstrap',
    'fontawesome',
]

Then you can include CSS and JavaScript as usual static resources, e.g. using {% static '...' %} in your base template as follows:

{% load static %}
<head>
    <link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}">
    <script defer src="{% static 'fontawesome/js/fontawesome-all.min.js' %}"></script>
</head>
<body>
    ...
    <script src="{% static 'bootstrap/js/jquery.min.js' %}"></script>
    <script src="{% static 'bootstrap/js/bootstrap.bundle.min.js' %}"></script>
</body>

Note that in the above code sample we use SVG powered Font Awesome, as recommended by their docs. You can use Font Awesome the classic way by replacing the <script ...> tag in the <head> section above by:

<link rel="stylesheet" href="{% static 'fontawesome/css/fontawesome-all.min.css' %}">

If you don’t use Bootstrap features that require Popper.js (e.g. dropdowns, popovers, tooltips) you can include bootstrap.min.js instead of the bundle to save a few kilobytes of bandwidth.

More details on integration may be available from each of the two projects:

Contribution

Occasionally, I forget to update this package with new bootstrap updates. Please feel free to submit a PR.

Sources and Procedures

Bootstrap: (all files from dist package)
Bootstrap website / Download -> drop into bootstrap/static/bootstrap/
jQuery: (compressed, uncompressed, map)

jQuery website / Download -> rename and mix into bootstrap/static/bootstrap/js/

Pick the latest version denoted as a dependency in bower.json (see Dependencies).

Font Awesome: (content of the on-server/ folder only)
Font Awesome website / Download Free -> drop into fontawesome/static/fontawesome/

Releases

To stay aligned with the Bootstrap release schedule we will keep version numbers of this app in sync with the bootstrap Major.Minor.Revision changes (semver). The additional version number will be added at the end to denote a new change within this package itself, e.g.

django-bootstrap-static==3.3.1.1 == Bootstrap 3.3.1 with an additional package change.

Release history Release notifications

This version
History Node

4.0.0

History Node

3.3.7.2

History Node

3.3.7.1

History Node

3.3.7

History Node

3.3.6

History Node

3.3.5

History Node

3.3.4

History Node

3.3.2

History Node

3.3.1

History Node

3.1.1

History Node

2.3.2

History Node

2.3.1.1

History Node

2.3.1

History Node

2.2.2

History Node

2.2.0

History Node

2.1.0

History Node

2.0.4

History Node

2.0.3

History Node

2.0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-bootstrap-static-4.0.0.tar.gz (2.9 MB) Copy SHA256 hash SHA256 Source None Feb 26, 2018

Supported by

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