You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, trying to send an email with the current version of Django makes the backend explode:
File "/app/insalan/user/views.py", line 213, in post
UserMailer.send_password_reset(user_object)
File "/app/insalan/user/models.py", line 180, in send_password_reset
send_mail(
File "/usr/local/lib/python3.12/site-packages/django/core/mail/__init__.py", line 87, in send_mail
return mail.send()
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/mail/message.py", line 298, in send
return self.get_connection(fail_silently).send_messages([self])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/mail/backends/smtp.py", line 124, in send_messages
new_conn_created = self.open()
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/mail/backends/smtp.py", line 80, in open
self.connection = self.connection_class(
^^^^^^^^^^^^^^^^^^^^^^
TypeError: SMTP_SSL.__init__() got an unexpected keyword argument 'keyfile'
[15/Feb/2024 16:27:42] "POST /v1/user/password-reset/ask/ HTTP/1.0" 500 109706
This is already fixed on prod server, python 3.12 is not compatible with our django version.
Using 3.11 is working fine, this was a fast fix, i forgot to push it to dev.
Actually, we should look into upgrading django, django_rest_framework and djongo as much as possible. For one of them (djongo), the releases seem dead, and a fork (djongo5) has been created to provide support for Django 5.X.
At the moment, trying to send an email with the current version of Django makes the backend explode:
As it turns out,
smtplib.SMTP_SSL
which is used by Django changed its code and now Django 4.2.7 has to follow.The text was updated successfully, but these errors were encountered: