def user_present(username):
    if User.objects.filter(username=username).count():
        return True
    return False
Checks the database if a user for a given username exists.
dataset/ETHPy150Open DummyDivision/Tsune/terrain.py/user_present