how to get data from database in django code example
Example 1: .save() in django
>>> one_entry = Entry.objects.get(pk=1)
Example 2: django swlite queries
>>> Entry.objects.filter(pub_date__lte='2006-01-01')
>>> one_entry = Entry.objects.get(pk=1)
>>> Entry.objects.filter(pub_date__lte='2006-01-01')