Below is a list of caveats when migrating from django-bootstrap4
(Bootstrap 4) to django-bootstrap5
(Bootstrap 5).
This document only considers the differences between django-bootstrap4
and django-bootstrap5
. For the migration
guide from Bootstrap 3 to 4, please look at the Bootstrap docs, especially the Migration section <https://getbootstrap.com/docs/4.6/migration/>
_.
The {% buttons %} ... {% endbuttons %}
tag has bene removed. To create buttons, use the {% bootstrap_button %}
tag.
Bootstrap 5 does not depend on jQuery. Every function and tag referencing jQuery has been removed.
If you need jQuery, you will have to include it yourself.
We use the bundled version of Bootstrap 5 JavaScript that includes Popper.
If you need a separate Popper.js file, do not use the {% bootstrap_javascript %}
tag, but load the JavaScript yourself.