“RuntimeWarning: DateTimeField Event.start_time received a naive datetime
通过CMD方式插入数据时,因为数据包含日期类型,所以会报: RuntimeWarning: DateTimeField Event.starttime received a naive datetime (2016-09-02 10:20:00) while time zone support is active.的错误。
错误原因:和UTC(世界标准时间)有关。
解决方法:.../settings.py 文件中设置:USE_TZ = False
---------------------
作者:wangxh_btnn
来源:CSDN
原文:https://blog.csdn.net/wangxh_btnn/article/details/53810801
版权声明:本文为博主原创文章,转载请附上博文链接!