orders = Order.objects.filter(date__range=[datetime.datetime.now(), datetime.timedelta(days=1)])
我想这并不完全符合我的要求,但是当我在我的 python shell 中输入它时,我不断收到这个警告。
RuntimeWarning: DateTimeField received a naive datetime (2012-08-26 02:03:25.614372) while time zone support is active.