Changes in DB data not reflecting in the Django queryset in a continuously looping script
问题 I am using Django's ORM to get newly added entries from a Db and pass them to a Messaging queue. I am doing this in an infinite while loop , The PROBLEM in every loop iteration I am getting the same queryset even when I have added/deleted/edited entries when this script is running, The code goes like this : while True : sleep(10 seconds) # Below is the problem line, I get the same query-set every time in new_objects # even when I have added/deleted/edited entries while this daemon is running.