我是django的新手,正在使用django开发Web应用程序。我已经在Web应用程序中使用Userena成功设置了注册功能,并且可以通过验证电子邮件注册为用户。我可以在settings.py文件中向我显示SMTP设置EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'EMAIL_USE_TLS = TrueEMAIL_HOST = 'smtp.gmail.com'EMAIL_PORT = 587EMAIL_HOST_USER = 'raihncse@gmail.com'DEFAULT_FROM_EMAIL = 'raihncse@gmail.com'SERVER_EMAIL = 'raihncse@gmail.com'EMAIL_HOST_PASSWORD = '**************'在我更改EMAIL_HOST_PASSWORD之前一切都很好实际上,出于某种原因,我必须更改该SERVER_EMAIL(raihncse@gmail.com)的先前密码。我已经根据新的SERVER_EMAIL密码编辑了EMAIL_HOST_PASSWORD。但是现在,如果我想注册为新用户,我将面临以下错误SMTPAuthenticationError at /accounts/signup/(534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbvNq\n5.7.14 S3l1pFXENupDa_SdPphNHrnzeLPUOyf6O0l1s31w7h_UARx11P89AxPeeZ6xBi2KeQRjsw\n5.7.14 nvpxZhPVv771W9ljEDyeWnqpqv3_nakuPo36BEl3IlYj9qVujNB5cm0TYFf9LQAxRjFdda\n5.7.14 xh-y5spA9zIQONDsvRRgN3e0DXoIkgxTO3Mu75IaACi-XlvFtFfPBiQ81gUrBZ_PhZsBmh\n5.7.14 ajsSf-flNEmoSydyOTNdmwdB0__8> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 40sm12125121qgi.47 - gsmtp')
添加回答
举报
0/150
提交
取消