[Django]-Is django.db.reset_queries required for a (nonweb) script that uses Django when DEBUG is False?

4👍

After running a debugger, indeed, reset_queries() is required for a non-web python script that uses Django to make queries. For every query made in the while loop, I did find its string representation appended to ones of the queries list in connections.all(), even when DEBUG was set as False.

Leave a comment