DEV Community

Discussion on: Create Advanced User Sign Up View in Django | Step-by-Step

Collapse
 
kynamd profile image
KyNam Doan

Hello CoderAsha,

Great tutorial format by the way, quite easy to follow.

On my local machine, activation works correctly using my gmail account (EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend').

Email is sent, clicking the link activates the user and sets the signup_confirmation bool value to True and the user may now login.

However, once I push it to my live google VM, it no longer works and gives me the error:
SMTPAuthenticationError at /accounts/signup/
(534, b'5.7.14 \n5.7.14 Please log in via your web browser and then try again.\n5.7.14 Learn more at\n5.7.14 support.google.com/mail/answer/78754 a6sm50520455pgg.25 - gsmtp')

Do you have any idea about this?

Thank you!

Collapse
 
thedevtimeline profile image
Rashid

Hi, I am glad you liked the tutorial. Google blocks sign-in attempts from apps which do not use modern security standard. You can however, turn on/off this safety feature by going to the link below:

google.com/settings/security/lesss...

let me know if it worked for you

Collapse
 
kynamd profile image
KyNam Doan

I just turned this off and it worked. Thanks!