Open pierryangelo opened 1 year ago
It worked for me too, I'm using django 4.1.13 (copying the file worked). Thanks.
I downgraded my python version and it worked too
I downgraded my python version and it worked too
From which version to what version?
In chapter 2, page 68, using the recommended version of Django by the book (exactly) I could't send e-mail via gmail account. The traceback error was this:
After searching, I discovered that this was an issue https://github.com/django/django/commit/2848e5d0ce5cf3c31fe87525536093b21d570f69. (keyfile and certfile parameters were removed in Python 3.12) To solve this, you must install Django 4.2.x or copy the https://github.com/django/django/blob/main/django/core/mail/backends/smtp.py to your local django installation replacing the original 4.1.x file.
I did this and it worked, so I could send the e-mail following the book example.