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.

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.4.1.4.tar.gz (730.4 kB view details)

Uploaded Source

Built Distribution

django_static_bootstrap-4.4.1.4-py3-none-any.whl (745.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django-static-bootstrap-4.4.1.4.tar.gz
Algorithm Hash digest
SHA256 5cf4233e3ec58e757f87a11de8d65f19a59c29db180cdef2f9bbed702e0b1339
MD5 532e408741f89c2fd9de122192a6e98d
BLAKE2b-256 e4c693bd746f3557515c487a3a7f2f72a7086dda33dc6f33a115bba2bfa5cec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_static_bootstrap-4.4.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f014de8e85bd7d48da3ad96c046c80fc73db65c7f0d41618aa2e41fb7e342c15
MD5 8e32ff7ebef4098fa3a11f6faebb89a7
BLAKE2b-256 3fb63cb9ca28fc1aa554a9bd02d11a91fe48fd2b00a6c4b50b4a66c32e9df779

See more details on using hashes here.

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