Django: sending email causes OSError
First, make sure that you enabled POP access in Gmail:
https://support.google.com/mail/answer/7104828?hl=en&visit_id=637244831918669326-2427073497&rd=1
Then, if you receive Application-specific password required
error, set up an app password for your account: