Django Tutorials: Display Objects in Your Database Using the Python Shell

By: Dusty Arlia
Published on Saturday, March 1, 2014, 01:26 PM
Last Updated on Tuesday, July 07, 2015 at 9:47 PM
Total Updates: 2

Use the python manage.py shell command to enter the python shell. Once you are there, to display Person objects in your database, use the following command:

>>> Person.objects.all()

Comments:

Ad:

Ad: