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.
- Open the Account List page
- Click on an account to open its detail page
- Locate the 'edit' button and click on it
- Change the details of the account and click save
- 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.