asaglimbeni / django-datetime-widget

Bootstrap django-datetime-widget is a simple and clean widget for DateField, Timefiled and DateTimeField in Django framework. It is based on Bootstrap datetime picker, supports both Bootstrap 3 and Bootstrap 2
Other
219 stars 125 forks source link

Uncaught TypeError: Object [object Object] has no method 'datetimepicker' #30

Closed yetkinozturk closed 10 years ago

yetkinozturk commented 10 years ago

Datetimepicker generates a html like this:

screen shot 2014-03-30 at 10 06 21 pm

But I am getting an error like this on my console:

Uncaught TypeError: Object [object Object] has no method 'datetimepicker'

asaglimbeni commented 10 years ago

do you configure your static folder in settings.py? if your static folder is served by apache remeber to run> manage.py collectstatic. For more help , please , follow the readme here https://github.com/asaglimbeni/django-datetime-widget.

yetkinozturk commented 10 years ago

Still same error. I configured them.

yetkinozturk commented 10 years ago

i added this and solved, there is no information about that. <---script src="{{ STATIC_URL }}js/bootstrap-datetimepicker.js"> <---ink rel="stylesheet" href="{{ STATIC_URL }}css/datetimepicker.css">