{"action":"opened","issue":{"url":"https://api.github.com/repos/nkunihiko/django-bootstrap3-datetimepicker/issues/44","labels_url":"https://api.github.com/repos/nkunihiko/django-bootstrap3-datetimepicker/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/nkunihiko/django-bootstrap3-datetimepicker/issues/44/comments","events_url":"https://api.github.com/repos/nkunihiko/django-bootstrap3-datetimepicker/issues/44/events","html_url":"https://github.com/nkunihiko/django-bootstrap3-datetimepicker/issues/44","id":92031674,"number":44,"title":"Undefined is not a function error","user":{"login":"s7h","id":12686019,"avatar_url":"https://avatars.githubusercontent.com/u/12686019?v=3","gravatar_id":"","url":"https://api.github.com/users/s7h","html_url":"https://github.com/s7h","followers_url":"https://api.github.com/users/s7h/followers","following_url":"https://api.github.com/users/s7h/following{/other_user}","gists_url":"https://api.github.com/users/s7h/gists{/gist_id}","starred_url":"https://api.github.com/users/s7h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s7h/subscriptions","organizations_url":"https://api.github.com/users/s7h/orgs","repos_url":"https://api.github.com/users/s7h/repos","events_url":"https://api.github.com/users/s7h/events{/privacy}","received_events_url":"https://api.github.com/users/s7h/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-30T09:06:57Z","updated_at":"2015-06-30T09:06:57Z","closed_at":null,"body":"this is my forms.py\r\n```\r\nfrom bootstrap3_datetime.widgets import DateTimePicker\t\r\nfrom django import forms\r\n\r\nclass serviceForm(forms.ModelForm):\r\n\r\n\tserviceRequestDate = forms.DateTimeField(\r\n        widget=DateTimePicker(options={\"format\": \"YYYY-MM-DD\",\r\n                                       \"pickTime\": False}))\r\n\r\n\tclass Meta:\r\n\t\tmodel = serviceBooking\r\n\t\tfields = ('serviceRequestDate', 'serviceRequestTime', 'serviceDetails')\r\n```\r\nthis is my template;\r\n```\r\n<form method=\"post\" action=\"/services/book/\">{% csrf_token %}\r\n                                <div class=\"col-xs-12 col-sm-6\">\r\n                                    <div class=\"form-group required\">\r\n                                        <label for=\"InputName\">Date <sup>*</sup> </label>\r\n                                        {{form.serviceRequestDate}}\r\n                                    </div>\r\n                                    <div class=\"form-group required\">\r\n                                        <label for=\"InputLastName\">Number of Hours <sup>*</sup> </label>\r\n                                        {{form.serviceRequestTime}}\r\n                                    </div>\r\n                                    \r\n                                </div>\r\n                                <div class=\"col-xs-12 col-sm-6\">\r\n                                    <div class=\"form-group required\">\r\n                                        <label for=\"InputZip\">Tell us about your work? <sup>*</sup></label>\r\n                                        {{form.serviceDetails}}\r\n                                    </div>\r\n                                    \r\n                                    \r\n                                </div>\r\n</form>\r\n```\r\n\r\nI have included the {{form.media}} tag in my head but I'm getting undefined is not a function error in my console and the datepicker is not opening.\r\n\r\n```\r\n<script>\r\n            $(function() {\r\n                $(\"#id_serviceRequestDate_picker\").datetimepicker({\"pickTime\": false, \"language\": \"en-us\", \"format\": \"YYYY-MM-DD\"});\r\n            });\r\n</script>\r\n```"}}