Learn Django

Checkpoint - Edit Account

This chapter taught you how to create and edit accounts. Mid-way through the chapter you verified the ability to create new accounts. In this lesson you'll check to see if you've built the edit functionality correctly. Follow these steps to do so.

Verify on Local Computer

To verify the work on your local computer you need to start the dev web server.

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

Follow these steps to test the edit account capability.

  1. Open the Account List page
  2. Click on an account to open its detail page
  3. Locate the 'edit' button and click on it
  4. Change the details of the account and click save
  5. Verify the changes were saved successfully

Verify on Heroku

If everything is working on your local computer you can deploy your changes to Heroku.

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

# open the Heroku app
(venv)$ heroku open

Once the Heroku app opens, login if necessary, and follow the steps above to test if the edit account capability is working correctly.

Track your progress with a free account