A Django widget library providing DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, and YearPickerInput with Bootstrap 3/4/5 styling and integration with Tempus Dominus. Current version 6.0.0 supports Django 6, Python 3.10-3.14, and drops deprecated features. Released 2026-01-28, cadence is irregular.
pip install django-bootstrap-datepicker-plusVerified import paths — ran on the pinned version, not inferred.
Basic usage: import widget and use in a Django form. Ensure Bootstrap CSS and JS are included in the template.
Upgrade to Python >=3.10 and install pydantic v2 (pip install pydantic>=2).
Change 'from bootstrap_datepicker_plus import DatePickerInput' to 'from bootstrap_datepicker_plus.widgets import DatePickerInput'.
Replace 'picker_opts={ "start_of": ... }' with 'picker_opts={ "minDate": ... }' or similar, depending on Tempus Dominus v6 options.Add Bootstrap and Tempus Dominus CDN links to your base template. Example: https://getbootstrap.com/docs/5.3/getting-started/introduction/ and https://getdatepicker.com/6/installation/
Refer to the official Tempus Dominus v6 options documentation: https://getdatepicker.com/6/options/
Install the package: pip install django-bootstrap-datepicker-plus
Use correct import: from bootstrap_datepicker_plus.widgets import DatePickerInput
Remove 'start_of' and 'end_of' from picker options. Use alternative Tempus Dominus v6 options like 'minDate' and 'maxDate'.
Check the options passed to the widget. Ensure they are valid Tempus Dominus v6 options. Refer to the widget documentation.