Django email with smtp.gmail SMTPAuthenticationError 534 Application-specific password required

后端 未结 2 958
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 16:51

I am trying to have django send emails but I am getting this error:

Traceback (most recent call last):
  File \"\", line 1, in 
  Fi         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-19 17:18

    Well, you need to generate a password from your google account (2 factor authentication). It is one time shown. check this link for guide.

    Afterward, page will prompt a password and paste it in your settings.py

    EMAIL_HOST_PASSWORD "your password goes here"
    

提交回复
热议问题