Django allauth example [Errno 61] Connection refused Django allauth example [Errno 61] Connection refused django django

Django allauth example [Errno 61] Connection refused


From allauth documentation:

When I sign up I run into connectivity errors (connection refused et al)

You probably have not got an e-mail (SMTP) server running on themachine you are developing on. Therefore, allauth is unable to sendverification mails.

You can work around this by adding the following line to settings.py:

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' Thiswill avoid the need for an SMTP server as e-mails will be printed tothe console. For more information, please refer to:

https://docs.djangoproject.com/en/dev/ref/settings/#email-backend


Alternatively if you have a social sign up, you probably do not require verification email so you can just add ACCOUNT_EMAIL_VERIFICATION = 'none' to your settings. This will automatically solve the problem.