Creating, Updating, and Deleting Records
new_post = BlogPost(title="New Post", content="This is a new post.", pub_date=date.today())
new_post.save()post_to_update = BlogPost.objects.get(title="Old Post")
post_to_update.content = "This post has been updated."
post_to_update.save()post_to_delete = BlogPost.objects.get(title="Post to Delete")
post_to_delete.delete()Last updated