code: def get_django_user(self, username, password=None):
          
          try:
              user = User.objects.get(username=username)
          except User.DoesNotExist:
              user = User(username=username)
  
          if password is not None:
              user.set_password(password)
              user.save()
  
          return user
docs: Get the Django user with the given username, or create one if it
          doesn't already exist. If `password` is given, then set the user's
          password to that (regardless of whether the user was created or not).