{"action":"created","issue":{"url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker/issues/4","repository_url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker","labels_url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker/issues/4/comments","events_url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker/issues/4/events","html_url":"https://github.com/tutorcruncher/django-bootstrap3-datetimepicker/issues/4","id":159733850,"number":4,"title":"No module named bootstrap3_datetime.widgets","user":{"login":"wlopz","id":11549290,"avatar_url":"https://avatars.githubusercontent.com/u/11549290?v=3","gravatar_id":"","url":"https://api.github.com/users/wlopz","html_url":"https://github.com/wlopz","followers_url":"https://api.github.com/users/wlopz/followers","following_url":"https://api.github.com/users/wlopz/following{/other_user}","gists_url":"https://api.github.com/users/wlopz/gists{/gist_id}","starred_url":"https://api.github.com/users/wlopz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlopz/subscriptions","organizations_url":"https://api.github.com/users/wlopz/orgs","repos_url":"https://api.github.com/users/wlopz/repos","events_url":"https://api.github.com/users/wlopz/events{/privacy}","received_events_url":"https://api.github.com/users/wlopz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-10T22:16:20Z","updated_at":"2016-06-11T05:36:16Z","closed_at":null,"body":"I am trying to get your DatePicker to work on my template but I am getting the error: **No module named bootstrap3_datetime.widgets**\r\n\r\nI tried to add `'bootstrap3_datetime'` to my `INSTALLED_APPS` like in `nkunihiko` widget since you forked it from there but no success.\r\n\r\nWould appreciate your help\r\n\r\nThis is what I have in my `models.py`:\r\n\r\n```\r\nclass Production(TimeStampedModel):\r\n\r\n        #Some other code.....\r\n\r\n        scheduled_date = models.DateTimeField(null=True, blank=True)\r\n        fully_produced_date = models.DateTimeField(null=True, blank=True)\r\n```\r\n\r\nIn my `forms_schedule.py`:\r\n\r\n```\r\nfrom django import forms\r\n\r\nfrom bootstrap3_datetime.widgets import DateTimePicker\r\n\r\nfrom .models import Production\r\n\r\n\r\n\r\nclass ScheduleForm(forms.ModelForm):\r\n\r\n\tclass Meta:\r\n\r\n\t\tmodel = Production\r\n\t\tfields = ['scheduled_date', 'fully_produced_date']\r\n\t\twidget=DateTimePicker(options={\"format\": \"YYYY-MM-DD HH:mm\", \"pickSeconds\": False})\r\n\r\n\tdef clean_scheduled_date(self):\r\n\t\tscheduled_date = self.cleaned_data.get('scheduled_date')\r\n\r\n\t\treturn scheduled_date\r\n\r\n\tdef clean_fully_produced_date(self):\r\n\t\tfully_produced_date = self.cleaned_data.get('fully_produced_date')\r\n\r\n\t\treturn fully_produced_date\r\n```\r\n\r\n`views.py`\r\n\r\n```\r\ndef episodeschedule(request):\r\n\r\n\ttitle = 'Podcast'\r\n\ttitle_align_center = True\r\n\tsubtitle = 'Setup | Add Episode'\r\n\tsubtitle_align_center = True\r\n\tform = ScheduleForm(request.POST or None)\r\n\tcontext = {\r\n\t\t\"title\": title,\r\n\t\t\"subtitle\": subtitle,\r\n\t\t\"form\": form\r\n\t}\r\n\r\n\tif form.is_valid():\r\n\r\n\t\tinstance = form.save(commit=False)\r\n\r\n\t\tscheduled_date = form.cleaned_data.get(\"scheduled_date\")\r\n\t\tfully_produced_date = form.cleaned_data.get(\"fully_produced_date\")\r\n\t\t\r\n\t\tinstance.scheduled_date = scheduled_date\r\n\t\tinstance.fully_produced_date = fully_produced_date\r\n\r\n\t\tinstance.user = request.user\r\n\r\n\t\tinstance.save()\r\n\r\n\t\treturn render(request, \"forms_schedule.html\", context)\r\n\r\n\telse:\r\n\r\n        \treturn render(request, \"forms_schedule.html\", context)\r\n```\r\n\r\nAnd `forms_schedule.html`:\r\n\r\n```\r\n{% extends \"base.html\" %}\r\n{% load crispy_forms_tags %}\r\n\r\n\r\n{% block content %}\r\n\r\n<div class=\"progress\">\r\n  <div class=\"progress-bar progress-bar-striped progress-bar-success active\" role=\"progressbar\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\">\r\n    <span class=\"sr-only\">100% Complete</span>\r\n  </div>\r\n</div>\r\n\r\n<div class=\"panel panel-default box-shadow--16dp col-sm-6 col-sm-offset-3\">\r\n<div class=\"panel-body\">\r\n\r\n<div class='row'>\r\n<div class='col-sm-12'>\r\n\r\n{% if title %}\r\n<h1 class='{% if title_align_center %}text-align-center{% endif %}'>{{ title }}<!-- : {{ get.clientsetup.company_name }} --></h1>\r\n{% endif %}\r\n{% if subtitle %}\r\n<h3 class='{% if subtitle_align_center %}text-align-center{% endif %}'>{{ subtitle }}</h4>\r\n{% endif %}\r\n\r\n<h5>Schedule</h5>\r\n\r\n<form method='POST' action=''>{% csrf_token %}\r\n{{ form|crispy }}\r\n\r\n<!-- <input type='text' class=\"form-control\" id='datetimepicker4' /> -->\r\n\r\n<hr/>\r\n\r\n<input class='btn btn-info box-shadow--6dp' type='submit' value='Save' />\r\n<p>\r\n<p>\r\n<a class=\"btn btn-primary box-shadow--6dp\" href=\"{% url 'dashboard' %}\" role=\"button\"><i class=\"fa fa-upload\" aria-hidden=\"true\"></i>&nbsp SCHEDULE EPISODE</a>\r\n\r\n</form>\r\n</div>\r\n</div>\r\n\r\n</div>\r\n</div>\r\n\r\n{% endblock %}\r\n```"},"comment":{"url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker/issues/comments/225338393","html_url":"https://github.com/tutorcruncher/django-bootstrap3-datetimepicker/issues/4#issuecomment-225338393","issue_url":"https://api.github.com/repos/tutorcruncher/django-bootstrap3-datetimepicker/issues/4","id":225338393,"user":{"login":"wlopz","id":11549290,"avatar_url":"https://avatars.githubusercontent.com/u/11549290?v=3","gravatar_id":"","url":"https://api.github.com/users/wlopz","html_url":"https://github.com/wlopz","followers_url":"https://api.github.com/users/wlopz/followers","following_url":"https://api.github.com/users/wlopz/following{/other_user}","gists_url":"https://api.github.com/users/wlopz/gists{/gist_id}","starred_url":"https://api.github.com/users/wlopz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlopz/subscriptions","organizations_url":"https://api.github.com/users/wlopz/orgs","repos_url":"https://api.github.com/users/wlopz/repos","events_url":"https://api.github.com/users/wlopz/events{/privacy}","received_events_url":"https://api.github.com/users/wlopz/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T05:36:16Z","updated_at":"2016-06-11T05:36:16Z","body":"By the way, I had to get your `widget.py` and copy all the code and put it in my project to make it work since that was causing me the issue of not locating the module."}}
{"actor":{"display_login":"wlopz"}}