Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to return total elements in database django

use ".count()"

Example:-
Number_of_Messages = Messages.objects.count()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #total #elements #database #django
ADD COMMENT
Topic
Name
5+5 =