如何在Forms.py Django中集成TimePicker?

时间:2016-06-03 05:36:27

标签: django django-forms django-templates django-admin

forms.py

time = forms.TimeField(widget=forms.TextInput(attrs={'class':'timepicker'}))

Html

<script>
        $(function() {
            $(".timepicker").timepicker({});
        });
</script>

我在控制台中收到此错误 未捕获的TypeError:$(...)。timepicker不是函数

如何在django表单中集成管理时间小部件?

0 个答案:

没有答案