3

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 ?

Community
  • 1
  • 1
IamH1kc
  • 6,602
  • 4
  • 19
  • 17

1 Answers1

10

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'
JamesO
  • 25,178
  • 4
  • 40
  • 42