开发者

Error connection refused while registering user in django registration

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜