Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. /rest-auth/registration/
  2.  
  3. SMTPServerDisconnected at /rest-auth/registration/
  4. Connection unexpectedly closed: [Errno 104] Connection reset by peer
  5.  
  6. EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
  7. EMAIL_USE_TLS = True
  8. EMAIL_HOST = 'smtp.beget.ru'
  9. EMAIL_PORT = 2525
  10. EMAIL_HOST_USER = 'order@roseonly.ru'
  11. EMAIL_HOST_PASSWORD = 'password'
  12.  
  13.  
  14. SECURE_SSL_REDIRECT = 'true'
  15. os.environ['wsgi.url_scheme'] = 'https'
  16. SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
  17.  
  18. Internal Server Error: /rest-auth/registration/
  19. Traceback (most recent call last):
  20. File "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
  21. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  22. File "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
  23. return view_func(*args, **kwargs)
  24. File "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
  25. return self.dispatch(request, *args, **kwargs)
  26. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/rest_framework/views.py", line 456, in dispatch
  27. response = self.handle_exception(exc)
  28. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/rest_framework/views.py", line 453, in dispatch
  29. response = handler(request, *args, **kwargs)
  30. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/rest_framework/generics.py", line 190, in post
  31. return self.create(request, *args, **kwargs)
  32. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/rest_auth/registration/views.py", line 50, in create
  33. user = self.perform_create(serializer)
  34. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/rest_auth/registration/views.py", line 64, in perform_create
  35. None)
  36. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/utils.py", line 183, in complete_signup
  37. signal_kwargs=signal_kwargs)
  38. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/utils.py", line 143, in perform_login
  39. send_email_confirmation(request, user, signup=signup)
  40. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/utils.py", line 310, in send_email_confirmation
  41. signup=signup)
  42. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/models.py", line 62, in send_confirmation
  43. confirmation.send(request, signup=signup)
  44. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/models.py", line 172, in send
  45. get_adapter(request).send_confirmation_mail(request, self, signup)
  46. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/adapter.py", line 420, in send_confirmation_mail
  47. ctx)
  48. File "/home/k/klimaku9/.local/lib/python2.7/site-packages/allauth/account/adapter.py", line 141, in send_mail
  49. msg.send()
  50. File "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/core/mail/message.py", line 303, in send
  51. return self.get_connection(fail_silently).send_messages([self])
  52. File "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 107, in send_messages
  53. sent = self._send(message)
  54. File "/home/k/klimaku9/justforfree.ru/public_html/venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 123, in _send
  55. self.connection.sendmail(from_email, recipients, message.as_bytes(linesep='rn'))
  56. File "/usr/lib/python2.7/smtplib.py", line 728, in sendmail
  57. self.rset()
  58. File "/usr/lib/python2.7/smtplib.py", line 467, in rset
  59. return self.docmd("rset")
  60. File "/usr/lib/python2.7/smtplib.py", line 392, in docmd
  61. return self.getreply()
  62. File "/usr/lib/python2.7/smtplib.py", line 363, in getreply
  63. + str(e))
  64. SMTPServerDisconnected: Connection unexpectedly closed: [Errno 104] Connection reset by peer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement