Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error connection refused while registering user in django registration

Tags:

django

I followed this post How to disable email activation in django-registration app? and made changes to my django-registration code . So even though user is getting registered once I click on submit button , it still gives me an error page saying socket error . That means it is still trying to send the mail , though I have set it to false . How to get rid of this ?

like image 610
IamH1kc Avatar asked Dec 30 '25 02:12

IamH1kc


1 Answers

I'm guessing this is in development? rather then turning email off you could try setting the email backend to dummy or file in your settings.py while in debug.

if DEBUG:
    EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
like image 121
JamesO Avatar answered Dec 31 '25 16:12

JamesO