def omb_request_token(request):
    consumer_key = request.REQUEST.get("oauth_consumer_key")
    try:
        Consumer.objects.get(name=consumer_key, key=consumer_key)
    except __HOLE__:
        Consumer.objects.create(name=consumer_key, key=consumer_key)
    response = request_token(request)
    return response
dataset/ETHPy150Open skabber/django-omb/omb/views.py/omb_request_token