...

/

Retrieve and Update the User

Retrieve and Update the User

Let’s learn how to get and update a user on the basis of the username.

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 ...