Answers for "count database access django"

SQL
0

count database access 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-04-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language