Django 6 · ORM queries
Create a row
Insert a new object into the database.
Post.objects.create(title="Hello", body="First post")
Official Django 6 documentation
Django 6 · ORM queries
Insert a new object into the database.
Post.objects.create(title="Hello", body="First post")
Official Django 6 documentation
Was this page helpful?