Retrieve and Update the User
Let’s learn how to get and update a user on the basis of the username.
We'll cover the following...
Retrieve the user
Say we want to retrieve a specific user object. To do that using the username
, we will do the following:
user = User.objects.get(username='Ulrich')
This will give us our user ...