Topics covered in this tutorial
User
the table where the information is savedsuperuser
update the password
- Django CLICreate a virtual environment - Linux-based systems
Install Django
superuser
that allows us to access the admin
section. For newcomers, the admin section manages the registered users, groups defined in our project. Create thesuperuser
in Django
superuser
admin is created we can access the admin
section and interact with all models registered by our project. Let's explore the users using the Django CLI:Create a new (common) user
create-user
helper provided by User
model - 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
saved
and the user is created create-user
method as well:request
object 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 -is_authenticated
(boolean) property
Check user is authenticated in views
logout
helper is provided by Django.contrib.auth
middleware package: logout
helper will run without returning errors or exceptions.