forms.py
time = forms.TimeField(widget=forms.TextInput(attrs={'class':'timepicker'}))
Html
<script>
$(function() {
$(".timepicker").timepicker({});
});
</script>
我在控制台中收到此错误 未捕获的TypeError:$(...)。timepicker不是函数
如何在django表单中集成管理时间小部件?