django 1.5 compatibility for oauth2app, except test site