Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
python_wiki:django_api [2018/08/04 15:39] billdozor [Django API] |
python_wiki:django_api [2018/08/04 15:40] billdozor [Add New Objects] |
||
---|---|---|---|
Line 92: | Line 92: | ||
\\ | \\ | ||
- | Two Steps: Create object and then save it to the database | + | **Two Steps: Create object and then save it to the database** |
<code python> | <code python> | ||
# Set variables that will be used to create a new object | # Set variables that will be used to create a new object | ||
Line 114: | Line 114: | ||
\\ | \\ | ||
- | One Step: Create object in the database | + | **One Step: Create object in the database** |
<code python> | <code python> | ||
# Set variables that will be used to create a new object | # Set variables that will be used to create a new object |