Don't rely on the presence of request.environ - it only exists if you're running in a WSGI container.
Don't rely on the presence of request.environ - it only exists if you're running in a WSGI container.

mdales/django-oauth