python - Debugging django-allauth Social Network Login Failure -
when using django-allauth oauth login via social provider, fails error page "social network login failure". there no log output containing more information. there feature request log output (https://github.com/pennersr/django-allauth/issues/1120) has been open on year. in mean time, how more information debug error?
more information passed context used render error template not used in default template.
you can log output overriding template , including in template following:
{{ auth_error }}
or alternatively:
code: {{ auth_error.code }}, error: {{ auth_error.exception }}
to override template, add folder django template dirs. in django 1.8+, looks following:
templates = [ { ... dirs: [os.path.join(base_dir, 'templates')] } ]
then, in folder, make directory socialaccount
, put in file called authentication_error.html
Comments
Post a Comment