Skip to main content

Django application contain bootstrap static files.

Project description

django-static-bootstrap

Django application contain bootstrap static files.

Install

pip install django-static-bootstrap

Settings

INSTALLED_APPS = [
    ...
    'django_static_bootstrap',
    ...
]

Use static resource

{% load staticfiles %}

<link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css" %}">
<script src="{% static "admin/js/vendor/jquery/jquery.js" %}"></script>
<script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
  • You can use django's jquery.js, but be careful about django's jquery.init.js. bootstrap/js/bootstrap.min.js must be loaded after jquery.js and before jquery.init.js.
  • If you are not using django framework, you can try django-static-jquery3>=5.0.0 to get jquery.js.

About releases

The first three number is the same with bootstrap project's version. The fourth number is our release number, it's optional.

Releases

v3.3.7.1 2018/03/27

  • First release.

v4.4.1 2020/02/27

  • Upgrade the resources to version 4.4.1.

v4.4.1.2 2020/09/08

  • No depends on django.

v4.4.1.4 2023/09/15

  • Doc update.

v4.6.2.1 2023/09/16

  • Upgrade to bootstrap v4.6.2.

v4.6.2.2 2025/10/21

  • Doc update.

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_static_bootstrap-4.6.2.2.tar.gz (740.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_static_bootstrap-4.6.2.2-py3-none-any.whl (755.7 kB view details)

Uploaded Python 3

File details

Details for the file django_static_bootstrap-4.6.2.2.tar.gz.

File metadata

File hashes

Hashes for django_static_bootstrap-4.6.2.2.tar.gz
Algorithm Hash digest
SHA256 90afb2c1e3435ca8fbc326bc0c4f518b8dcc02964d56dab7af80e5ebfb66915a
MD5 acc6234a47736b90e4c05d20024178df
BLAKE2b-256 119da127722f21aafbf6552e4740bd9602949fb8c0cb6332a878c16adf37f3cc

See more details on using hashes here.

File details

Details for the file django_static_bootstrap-4.6.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_static_bootstrap-4.6.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e584c62205c57d94fb7a561d878b0d9507d3624f86f348d59cce19dff55cbcc
MD5 cfaaf31fa9cbc6882c37b9ba641d01cd
BLAKE2b-256 36066eaa530234df275899fd15e50ac6faf19b54592fdfd20028588da6c48a3a

See more details on using hashes here.

Supported by

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