Topics covered in this tutorial
Userthe table where the information is saved
update the password- Django CLI
Create a virtual environment - Linux-based systems
superuserthat allows us to access the
adminsection. For newcomers, the admin section manages the registered users, groups defined in our project.
superuseradmin is created we can access the
adminsection and interact with all models registered by our project. Let's explore the users using the Django CLI:
Create a new (common) user
create-userhelper provided by
Usermodel - Let's check again all registered users:
Create the SignUp Form
Create the controller
The page that shows the form and invite the user to register
The user registration mechanism
savedand the user is created
create-usermethod as well:
requestobject and we can check if a request is done by an authenticated user or not by calling a helper. The same check is available in views.
Check user is authenticated in controller -
Check user is authenticated in views
logouthelper is provided by
logouthelper will run without returning errors or exceptions.