Learn Django
Checkpoint
In this chapter you built the login and logout functionality. This was a short chapter as Django comes with much of the functionality required for this pre-built. Now all you have to do is verify that it works.
Verify on Local Computer
To verify the work on your local computer all you have to do is start the dev server, access the login page, and login using your superuser credentials.
First, start the development 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
Then open the Login page. Enter in your superuser credentials.
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 the_login_page:master # open the Heroku app (venv)$ heroku open
Then go to your Heroku app's login page and login using your superuser credentials.