pennersr/django-allauth — pull request #157 by ksze (2012-12-23 17:55:27+00:00)
Title: A solution to the StackExchange account vs profile problem.

I have switched over to your implementation of the StackExchange OAuth 2.0, and added my solution to the account vs profile problem.

The StackExchangeOAuth2Adapter.complete_login method now raises OAuth2Error if
the user does not have a StackOverflow profile. The OAuth2LoginView.dispatch
or OAuth2CallbackView.dispatch method catches it and displays a message in the
socialaccount/authentication_error.html template, telling the user why the
authentication failed.