On Wednesday, February 1, 2017 at 1:21:21 PM UTC+13, Tim Graham wrote:
Oh, I see, you're using bytearray to try to workaround the issue. Well, Django master no longer supports Python 2.7, that's why force_str() was removed. Is there a problem with Django master and Python 3?
On Tuesday, January 31, 2017 at 7:16:41 PM UTC-5, ell...@makecollective.co.nz wrote:Neither.I haven't seen anything with webfaction and I have used webfaction in the past on several projects and not had any trouble.
On Wednesday, February 1, 2017 at 12:12:56 PM UTC+13, Tim Graham wrote:I've never seen a password as a bytearray. Is there webfaction documentation about this?
On Tuesday, January 31, 2017 at 6:06:04 PM UTC-5, ell...@makecollective.co.nz wrote:myMail.send()The error I'm getting:
File "/Users/Elliot/.virtualenvs/
allright/lib/python2.7/site- , line 342, in sendpackages/django/core/mail/ message.py" return self.get_connection(fail_
silently ).send_messages([self]) File "/Users/Elliot/.virtualenvs/
allright/lib/python2.7/site- , line 100, in send_messagespackages/django/core/mail/ backends/smtp.py" new_conn_created = self.open()
File "/Users/Elliot/.virtualenvs/
allright/lib/python2.7/site- , line 67, in openpackages/django/core/mail/ backends/smtp.py" self.connection.login(self.use
rname , self.password)File "/System/Library/Frameworks/
Python.framework/Versions/2.7/ , line 607, in loginlib/python2.7/smtplib.py" (code, resp) = self.docmd(encode_cram_md5(res
p , user, password))File "/System/Library/Frameworks/
Python.framework/Versions/2.7/ , line 571, in encode_cram_md5lib/python2.7/smtplib.py" response = user + " " + hmac.HMAC(password, challenge).hexdigest()
File "/System/Library/Frameworks/
Python.framework/Versions/2.7/ , line 75, in __init__lib/python2.7/hmac.py" self.outer.update(key.translat
e (trans_5C))TypeError: character mapping must return integer, None or unicode
There was solution from this ticket with the same problem. But then the fixed commit was removed here.The settings needed to send emails nowEMAIL_USE_TLS = TrueEMAIL_HOST = 'smtp.webfaction.com'EMAIL_HOST_USER = '****'EMAIL_HOST_PASSWORD = bytearray('******', 'utf-8')EMAIL_PORT = 587So 2 questions:Am I missing something simple?Is this a bug and needs a ticket?Cheers
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/40d9f4eb-b7e6-4120-b6d1-0254577ec36a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment