Learn Django

Chapter Intro

The previous chapter showed you how to create the first part of the subscriber form. Specifically, it showed how to create and process a form that collected the username, password, and email. From this information it created a user record.

In this chapter you'll continue the process of building the subscriber form. First, you'll learn what models are and how to create them. Then you'll update the form, view, and template. By the end of the chapter you'll have a form that looks like this.

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-4

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

Track your progress with a free account