bwarren2 / bonsai

0 stars 0 forks source link

Add signup interfaces #77

Closed wlonk closed 8 years ago

wlonk commented 8 years ago

llama

Depends on https://github.com/bwarren2/bonsai_api/issues/11

bwarren2 commented 8 years ago

I wager I am missing a config option for Django email config option?

[27/Sep/2016 22:15:26] "POST /api/auth/register/ HTTP/1.1" 400 58
Internal Server Error: /api/auth/register/
Traceback (most recent call last):
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/exception.py", line 39, in inner
    response = get_response(request)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/views.py", line 474, in dispatch
    response = self.handle_exception(exc)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/views.py", line 434, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/views.py", line 471, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/generics.py", line 191, in post
    return self.create(request, *args, **kwargs)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/mixins.py", line 21, in create
    self.perform_create(serializer)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/djoser/views.py", line 60, in perform_create
    self.send_activation_email(user)
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/djoser/views.py", line 67, in send_activation_email
    email.send()
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/mail/message.py", line 342, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python3.5/smtplib.py", line 251, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python3.5/smtplib.py", line 335, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python3.5/smtplib.py", line 306, in _get_socket
    self.source_address)
  File "/usr/lib/python3.5/socket.py", line 711, in create_connection
    raise err
  File "/usr/lib/python3.5/socket.py", line 702, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
[27/Sep/2016 22:15:29] "POST /api/auth/register/ HTTP/1.1" 500 20060
wlonk commented 8 years ago

Are you using the settings.local settings? That's got the console email backend set up.

On Tue, Sep 27, 2016 at 4:16 PM Ben Warren notifications@github.com wrote:

I wager I am missing a config option for Django email config option?

[27/Sep/2016 22:15:26] "POST /api/auth/register/ HTTP/1.1" 400 58 Internal Server Error: /api/auth/register/ Traceback (most recent call last): File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/exception.py", line 39, in inner response = get_response(request) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in

_legacy_get_response response = self.get_response(request) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, callback_args, callback_kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/views/generic/base.py", line 68, in view return self.dispatch(request, args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/views.py", line 474, in dispatch response = self.handle_exception(exc) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/views.py", line 434, in handle_exception self.raise_uncaught_exception(exc) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/views.py", line 471, in dispatch response = handler(request, args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/generics.py", line 191, in post return self.create(request, args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/rest_framework/mixins.py", line 21, in create self.perform_create(serializer) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/djoser/views.py", line 60, in perform_create self.send_activation_email(user) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/djoser/views.py", line 67, in send_activation_email email.send() File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/mail/message.py", line 342, in send return self.get_connection(fail_silently).send_messages([self]) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 100, in send_messages new_conn_created = self.open() File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 58, in open self.connection = connection_class(self.host, self.port, _connection_params) File "/usr/lib/python3.5/smtplib.py", line 251, in __init* (code, msg) = self.connect(host, port) File "/usr/lib/python3.5/smtplib.py", line 335, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python3.5/smtplib.py", line 306, in _get_socket self.source_address) File "/usr/lib/python3.5/socket.py", line 711, in create_connection raise err File "/usr/lib/python3.5/socket.py", line 702, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused [27/Sep/2016 22:15:29] "POST /api/auth/register/ HTTP/1.1" 500 20060

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bwarren2/bonsai/pull/77#issuecomment-250015455, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4hJrwz38q_b6S5PytzkJGmuTd9Nv16ks5quZWkgaJpZM4KHND4 .

bwarren2 commented 8 years ago

PEBKAC, in my new venv for the branch I used base rather than local.

It looks really good! Post confirm link on login I think there could be a more prominent success indicator, but that is minor aesthetics. LGTM.

On Sep 27, 2016 6:17 PM, "Kit La Touche" notifications@github.com wrote:

Are you using the settings.local settings? That's got the console email backend set up.

On Tue, Sep 27, 2016 at 4:16 PM Ben Warren notifications@github.com wrote:

I wager I am missing a config option for Django email config option?

[27/Sep/2016 22:15:26] "POST /api/auth/register/ HTTP/1.1" 400 58 Internal Server Error: /api/auth/register/ Traceback (most recent call last): File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/handlers/exception.py", line 39, in inner response = get_response(request) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/handlers/base.py", line 249, in

_legacy_get_response response = self.get_response(request) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, callback_args, callback_kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/views/generic/base.py", line 68, in view return self.dispatch(request, args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/rest_framework/views.py", line 474, in dispatch response = self.handle_exception(exc) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/rest_framework/views.py", line 434, in handle_exception self.raise_uncaught_exception(exc) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/rest_framework/views.py", line 471, in dispatch response = handler(request, args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/rest_framework/generics.py", line 191, in post return self.create(request, args, kwargs) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/rest_framework/mixins.py", line 21, in create self.perform_create(serializer) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/djoser/views.py", line 60, in perform_create self.send_activation_email(user) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/djoser/views.py", line 67, in send_activation_email email.send() File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/mail/message.py", line 342, in send return self.get_connection(fail_silently).send_messages([self]) File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/mail/backends/smtp.py", line 100, in send_messages new_conn_created = self.open() File "/home/ben/.virtualenvs/bonsai_api/lib/python3.5/site- packages/django/core/mail/backends/smtp.py", line 58, in open self.connection = connection_class(self.host, self.port, _connection_params) File "/usr/lib/python3.5/smtplib.py", line 251, in __init* (code, msg) = self.connect(host, port) File "/usr/lib/python3.5/smtplib.py", line 335, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python3.5/smtplib.py", line 306, in _get_socket self.source_address) File "/usr/lib/python3.5/socket.py", line 711, in create_connection raise err File "/usr/lib/python3.5/socket.py", line 702, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused [27/Sep/2016 22:15:29] "POST /api/auth/register/ HTTP/1.1" 500 20060

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bwarren2/bonsai/pull/77#issuecomment-250015455, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4hJrwz38q_ b6S5PytzkJGmuTd9Nv16ks5quZWkgaJpZM4KHND4 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bwarren2/bonsai/pull/77#issuecomment-250015779, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnXZXtfttKFfahIuohypi1_QsGTejV6ks5quZYGgaJpZM4KHND4 .