RuntimeWarning: DateTimeField UserProfile.last_login received a naive datetime

/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py:1453: RuntimeWarning: DateTimeField UserProfile.last_login received a naive datetime (2016-03-09 08:56:06.585692) while time zone support is active. RuntimeWarning)

出现这个情况是系统时区的问题  改变一下系统的时区

和django 里 setting.py 里的时区设置 就可以了

1 条评论

发表评论