Describe the problem
Using Boostrap5, Django 4.1.2, Python 3.10.2, macOS bigsur got an javascript error on console caused in the file "datepicker-widget.js". The variable boostrapVersion is not assigned with a proper value.
After manually setting the variables isBootstrap4 and isBootstrap5 with false / true everything works fine.
Describe the problem Using Boostrap5, Django 4.1.2, Python 3.10.2, macOS bigsur got an javascript error on console caused in the file "datepicker-widget.js". The variable boostrapVersion is not assigned with a proper value. After manually setting the variables isBootstrap4 and isBootstrap5 with false / true everything works fine.