title: How to get queryset in django?
body: <p>I am trying to send an email to those orders that is created 5 minutes before the datetime.now(). I try to filter the orders but it is not working, it is not giving me any queryset. How to do this? I am sharing my code.</p>
  <pre><code>def my_email(): 
      now = datetime.now() - timedelta(minutes=5) # 11:55
      now = now.replace(tzinfo=pytz.utc)
      print(now)
      order = Order.objects.filter(createdAt__gt = now)
      print(order)
      for o in order:
          print(o._id)
  </code></pre>