django get object by primary key code example Example: create django object Author.objects.create(name="Joe")