Bootstrap5 packaged in a Django reusable app.
This package includes only the original JS and CSS files.
pip install django-js-lib-bootstrap5
-
Add
"js_lib_bootstrap5"to yourINSTALLED_APPSsetting like this::INSTALLED_APPS = [ ... "js_lib_bootstrap5", ... ] -
In your template use:
{% load static %}...
<link rel="stylesheet" href="{% static "js-lib-bootstrap5/css/bootstrap.css" %}">...
<script src="{% static "js-lib-bootstrap5/js/bootstrap.js" %}"></script>