monim67 / django-bootstrap-datepicker-plus

Bootstrap3/Bootstrap4/Bootstrap5 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django >= 2.0
https://pypi.python.org/pypi/django-bootstrap-datepicker-plus
MIT License
223 stars 61 forks source link

Cannot import DatePickerInput #71

Closed MWH-Rookie closed 2 years ago

MWH-Rookie commented 2 years ago

Hi

I am using a chroot (Debian Buster on armel) and want to use the datepicker in a django app. I did this before in another chroot with django-bootstrap-datepicker-plus==3.0.5, but now I have django-bootstrap-datepicker-plus-4.0.0.

When I start my django app as usual with /bin/gunicorn3 -w 3 abrechnung.wsgi:application --bind 0.0.0.0:7777 I get a new error message, when I get to the app in the browser:

File "/home/work/MyDjango/project/app_a/forms.py", line 7, in from bootstrap_datepicker_plus import DatePickerInput ImportError: cannot import name 'DatePickerInput' from 'bootstrap_datepicker_plus' (/usr/local/lib/python3.7/dist-packages/bootstrap_datepicker_plus/init.py)

I have no idea where this comes from? I already uninstalled and installed the datepicker again (wget from the current wheel (https://pypi.org/project/django-bootstrap-datepicker-plus/#files) and then python3 -m pip install that_wheel.

Do you have any advice for me?

Best regards

MWH-Rookie commented 2 years ago

Can it be that the init .py file has to be modified to import the widgets.py?

monim67 commented 2 years ago

Duplicate to #66.