Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个时间域,我想设置一个默认值。
我试过了time = models.TimeField(default=datetime.time(10, 0))
time = models.TimeField(default=datetime.time(10, 0))
但我有错误
无法将没有时区的类型时间转换为带时区的时间戳
任何想法 ?