Connection error while registering user in django registration

I followed this post. How to disable email activation in django registration application? and made changes to my django registration code. Therefore, even if the user logs in as soon as I click the "Send" button, he still gives me a page with a socket error message. This means that he is still trying to send mail, although I set it to false. How to get rid of this?

+3
source share
1 answer

I assume this is in development? Instead of disabling email, you can try setting the email backend to dummy or file in your own settings.pyduring debugging.

if DEBUG:
    EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
+10
source

All Articles