首页 > 代码库 > 解决 django 博客归档 “Are time zone definitions for your database and pytz installed?”的错误

解决 django 博客归档 “Are time zone definitions for your database and pytz installed?”的错误

修改 project 中的settings 文件,问题解决!

# USE_TZ = True
USE_TZ = False

# LANGUAGE_CODE = ‘en-us‘
LANGUAGE_CODE = zh-hans

# TIME_ZONE = ‘UTC‘
TIME_ZONE = Asia/Shanghai

解决 django 博客归档 “Are time zone definitions for your database and pytz installed?”的错误