django-bootstrap3-datetimepicker icon indicating copy to clipboard operation
django-bootstrap3-datetimepicker copied to clipboard

ImportError at / No module named 'widgets'

Open pkaramol opened this issue 9 years ago • 0 comments
trafficstars

Caused by the lack of relative import of widgets in fields.py (?)

Exception Location: /home/pkaramol/Workspace/virtualenvs/time_ds/venv_p34dj18/lib/python3.4/site-packages/bootstrap3_datepicker/fields.py in <module>, line 3

Using python 3.4.3 in the following venv

Django==1.8.11
django-bootstrap3-datepicker==0.3.1
flake8==2.5.4
mccabe==0.4.0
numexpr==2.5
numpy==1.10.4
pep8==1.7.0
pyflakes==1.0.0
requests==2.9.1
tables==3.2.2

When using relative import (.widgets) another exception occurs:

AttributeError at /
'NoneType' object has no attribute 'replace'

Exception Location: /home/pkaramol/Workspace/virtualenvs/time_ds/venv_p34dj18/lib/python3.4/site-packages/bootstrap3_datepicker/widgets.py in conv_date_format_py2js, line 58

pkaramol avatar Apr 01 '16 11:04 pkaramol