RuntimeWarning: DateTimeField Orders.create_at received a naive datetime (2022-02-01 21:26:58) while

报错和UTC(世界标准时间)有关,不会影响程序的执行

在settings.py 文件靠下的位置中设置 USE_TZ = False 即可

猜你喜欢

转载自blog.csdn.net/qq_46500711/article/details/122766349