settings.py 修改为如下代码
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
USE_TZ = False
settings.py 修改为如下代码
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
USE_TZ = False
本文标题:Django后端相差8小时
本文链接:https://www.haomeiwen.com/subject/dsxjhqtx.html
网友评论