RuntimeWarning: DateTimeField UserProfile.create_time received a naive datetime (2024-10-13 13:40:07) while time zone support is active. RuntimeWarning)

 

解决办法:

在settings.py中设置如下:

USE_TZ = False

posted @ 2024-10-09 15:46  slnngk  阅读(6)  评论(0编辑  收藏  举报