'Why does "django-bootstrap-v5" exist?

I've been following a tutorial "https://youtu.be/0mCZdemSsbs" and others (some Bootstrap 4 others v5), that do not use "django-bootstrap-v5" (see https://django-bootstrap-v5.readthedocs.io/en/latest/ ). I'm wondering if / why it exists, and should I use it?



Solution 1:[1]

Reading the code it looks like it includes Bootstrap v5 in your django templates https://github.com/zelenij/django-bootstrap-v5/blob/main/src/bootstrap5/bootstrap.py#L5

Compared to it's predecessor django-bootstrap4 which includes Bootstrap v4 in your django templates https://github.com/zostera/django-bootstrap4/blob/d546447ba166c9fcb756d9a26d4327044b4d08e6/src/bootstrap4/bootstrap.py#L5

So if you were relying on Bootstrap v5 specific enhancements such as dropdown-menu-dark you would want the v5 version.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jimmy Pells