通過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
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!