Learn Django

Chapter Intro

In the last chapter you built the contacts app and model. You also created views, templates, and URLs that allowed users to view a contact both as a standalone page, and within the account detail page.

In this chapter you'll build on that work by creating a form capable of creating new contacts, and editing existing ones. This form can be used both as a standalone page, and within the the account detail page.

Level Set

Follow these steps to reset your project to a known working version.

1
2
3
4
5
6
7
8
# checkout the master
(venv)$ git checkout master

# checkout the baseline version for the current chapter
(venv)$ git checkout step-11

# create a new branch from this version
(venv)$ git checkout -b contacts_part_2

Track your progress with a free account