Skip to main content

A collection of Bootstrap static files.

Project description

Bootstrap 4.1.3 jQuery 3.3.1 Font Awesome 5.6.3

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/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/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.

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-bootstrap-static-4.1.3.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

django_bootstrap_static-4.1.3-py2.py3-none-any.whl (4.3 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-bootstrap-static-4.1.3.tar.gz.

File metadata

  • Download URL: django-bootstrap-static-4.1.3.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8

File hashes

Hashes for django-bootstrap-static-4.1.3.tar.gz
Algorithm Hash digest
SHA256 83a3fe65dd59d5a6f0805acb5fe5a7558268aa54f8ce3375b39c2c43a8c87710
MD5 e4348f52a83c64af7d89319b78c2d8a9
BLAKE2b-256 55c63d95220019b44dc362981db8ec94dec2987b8f76bfe7b2d7ab66a24dc619

See more details on using hashes here.

Provenance

File details

Details for the file django_bootstrap_static-4.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: django_bootstrap_static-4.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8

File hashes

Hashes for django_bootstrap_static-4.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab771424da8400090cd80d9a5e750e262cbdd96f1577d60933e768933ff3bb53
MD5 eed1b4737c632f80eacee70de8747a12
BLAKE2b-256 109a9def0a4b16e2f5e2ab1a43035934c535f40256db1decdbbbde49f55e2341

See more details on using hashes here.

Provenance

Supported by

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