Hi!
I'm using Django Social Auth for Google OpenID authentication.
urls.py fragment:
```
url(r'', include('social_auth.urls')),
```
But a can't handle exception AuthCanceled. It's settings don't help me:
```
DEBUG = False
SOCIAL_AUTH_RAISE_EXCEPTIONS = False
SOCIAL_AUTH_BACKEND_ERROR_URL = '/login_error/'
LOGIN_ERROR_URL = '/login_error/'
```
I change urls.py and write them all routes directly:
```
#url(r'', include('social_auth.urls')),
url(r'^login/(?P<backend>[^/]+)/$', 'social_auth.views.auth', name='socialauth_begin'),
url(r'^complete/(?P<backend>[^/]+)/$', 'www.views.complete_view', name='socialauth_complete'),
```
And override complete view:
```
from social_auth.views import complete
from social_auth.exceptions import AuthCanceled
def complete_view(request, backend, *args, **kwargs):
try:
return complete(request, backend, *args, **kwargs)
except AuthCanceled as e:
return render_to_response('index.html', { 'auth_canceled': True })
```
It's worked! But I think, it's not best practice.