def check_key(request):
    """
    Check to see if we already have an access_key stored,
    if we do then we have already gone through
    OAuth. If not then we haven't and we probably need to.
    """
    try:
        access_key = request.session.get('oauth_token', None)
        if not access_key:
            return False
    except __HOLE__:
        return False
    return True
dataset/ETHPy150Open marcelcaraciolo/foursquare/examples/django/example/djfoursquare/views.py/check_key