Answers for "get database num hits django"

0

get database num hits django

>>> from django.conf import settings
>>> settings.DEBUG = True
>>> from django.db import connection
>>> Model.objects.count()
>>> # python 3 uses print()
>>> print(len(connection.queries))
1
Posted by: Guest on August-31-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language