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.
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
Built Distribution
Close
Hashes for django-static-bootstrap-4.6.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481905929d544704de450b6153a949dd49d615e2e936d8882c6e496a4f9f3cd9 |
|
MD5 | db43bdfe37368897d7975db32f73ee30 |
|
BLAKE2b-256 | 7182be2d6f9101b9b5ce4cc089240e2d2de0868409a7bc2e7d6d3e46e8e9ec33 |
Close
Hashes for django_static_bootstrap-4.6.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe00573bdcbe1d16dbf1e66ed8fc278acb19a016ee534d50c391be56bf1fd5c7 |
|
MD5 | 62bb598c7081e1df313f4cae30aabf5a |
|
BLAKE2b-256 | 96b76c02e33495762acc7ba14f725d765a72eb7f7af1b8a57ba5dae65c0bb5f9 |