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

v4.4.1.2 2020/09/08

  • No depends on django.

v4.4.1 2020/02/27

  • Upgrade the resources to version 4.4.1.

v3.3.7.1 2018/03/27

  • First release.

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

Uploaded Source

File details

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

File metadata

  • Download URL: django-static-bootstrap-4.4.1.2.tar.gz
  • Upload date:
  • Size: 728.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for django-static-bootstrap-4.4.1.2.tar.gz
Algorithm Hash digest
SHA256 e62a27dfdf6a2030085fd11571782c4b6a61adbe9f5b5e0eb45a1e7395257933
MD5 c9a503b197adfbc6fe64590e25d20781
BLAKE2b-256 acc5c22d57f561708dd3761623555f3d033e1b73cecbeb6294595c85b4dd2372

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