No connection could be made because the target machine actively refused it (Django)

前端 未结 7 780
小鲜肉
小鲜肉 2021-02-07 12:14

I have followed the Django Book up until chapter seven, and I am currently messing around with forms, GET, POST and all that goodness. At one point, the guide made me figure out

7条回答
  •  梦谈多话
    2021-02-07 13:02

    In settings.py, For console output, you need

    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
    

    For smtp

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
    

    Also refer this doc here https://docs.djangoproject.com/en/1.6/topics/email/

提交回复
热议问题