数据库存储当前时间操作:datetime.datetime.now()更改为: from django.utils import timezone timezone.now() 转载于:https://www.cnblogs.com/nuomin/p/10876676.html