开发者

Error connection refused while registering user in django registration

开发者 https://www.devze.com 2023-03-13 01:40 出处:网络
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 butt

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 h开发者_运维问答ave set it to false . How to get rid of this ?


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'
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号