Learn Django

Checkpoint

In this chapter you built the first part of the subscriber form. Eventually this form will be able to collect enough info from a customer to create an account and process a credit card. For now it collects only part of this information. Follow these steps to verify your work.

Verify on Local Computer

Execute these commands to verify your work on your local computer.

1
2
3
4
5
6
# make sure you're at an activated terminal/cmd in the crmeasy dir
(venv)$ pwd
/<your_path>/crmeasy

# start the development server
(venv)$ python manage.py runserver

Now open http://127.0.0.1:8000/signup/. Fill out the form and click save. If you are redirected to the /success/ page then you performed the steps in this chapter correctly.

Verify on Heroku

Follow these steps to push the code to Heroku and check if all is working there.

1
2
3
4
5
# push changes to Heroku
(venv)$ git push -f heroku subscriber_form_part_1:master

# open the Heroku app
(venv)$ heroku open

Then click on one of the signup links to see if the form displays properly.

Track your progress with a free account