Django时区配置:有次发现缓存的时间总是有问题,原来是时区配置需要改
# LANGUAGE_CODE = \'en-us\' # TIME_ZONE = \'UTC\' LANGUAGE_CODE = \'zh-Hans\' TIME_ZONE = \'Asia/Shanghai\'
版权声明:本文为jzss原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
# LANGUAGE_CODE = \'en-us\' # TIME_ZONE = \'UTC\' LANGUAGE_CODE = \'zh-Hans\' TIME_ZONE = \'Asia/Shanghai\'