Creating and Saving Objects Live
Insert rows interactively to test ideas fast.
Make a Row from Scratch
The shell lets you create database rows by hand. Start by building an instance with the values you want.
>>> p = Post(title="Hello", body="My first post")Nothing Saved Yet
That instance lives only in memory so far. The database knows nothing about it until you explicitly write it.
All lessons in this course
- Launching python manage.py shell
- Importing and Inspecting Models
- Creating and Saving Objects Live
- shell_plus and Better Tooling