LogoutView and SignUpView9:48 with Kenneth Love
If we're going to let users log in, we should let them log out, too. And before there can be any logging in or out, users have to be able to sign up. Let's see how to build these very important and useful features!
logout function is your best bet for logging a user out.
Signing users up can be a very specific thing for your site, so be sure to make that process fit your site. django-registration is a very popular package for customizing the registration workflow and one I definitely recommend checking out.
You need to sign up for Treehouse in order to download course files.Sign up