def get_user(username):
    matchresult = User.objects.filter(username=username)
    if matchresult.count() > 0:
        return matchresult[0]
Returns the first user that matches the username.
dataset/ETHPy150Open DummyDivision/Tsune/terrain.py/get_user