Django LANGUAGE_CODE和TIME_ZONE设置

The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.

Django1.9以后language code 'zh-cn'就被丢弃了,使用'zh-hans'代替。

LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'

修改为

LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'

你可能感兴趣的:(Python)