Django timezone问题
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 今天用django做个blog碰到了问题,提交内容后浏览提示Database returned an invalid value in QuerySet.datetimes(). Are time zone definitions for your database and pytz installed? django官方文档这么说: When support for time zones is enabled, Django stores date and time information in UTC in the database, uses time-zone-aware datetime objects internally, and translates them to the end user’s time zone in templates and forms. This is handy if your users live in more than one time zone and you want to display date and time information according to each user’s wall clock. Even if your Web site