chishop
chishop copied to clipboard
django registration requires smtp server?
When I try and register with chishop I get a failure:
Traceback: File "/home/nferrier/chishop/parts/django/django/core/handlers/base.py" in get_response
File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/views.py" in registerresponse = callback(request, _callback_args, *_callback_kwargs) File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/backends/default/init.py" in registernew_user = backend.register(request, **form.cleaned_data) File "/home/nferrier/chishop/parts/django/django/db/transaction.py" in _commit_on_successpassword, site) File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/models.py" in create_inactive_userres = func(_args, *_kw) File "/home/nferrier/chishop/eggs/django_registration-0.8_alpha_1-py2.6.egg/registration/models.py" in send_activation_emailregistration_profile.send_activation_email(site) File "/home/nferrier/chishop/parts/django/django/contrib/auth/models.py" in email_userself.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL) File "/home/nferrier/chishop/parts/django/django/core/mail.py" in send_mailsend_mail(subject, message, from_email, [self.email]) File "/home/nferrier/chishop/parts/django/django/core/mail.py" in sendconnection=connection).send() File "/home/nferrier/chishop/parts/django/django/core/mail.py" in send_messagesreturn self.get_connection(fail_silently).send_messages([self]) File "/home/nferrier/chishop/parts/django/django/core/mail.py" in _sendsent = self._send(message) File "/usr/lib/python2.6/smtplib.py" in sendmailemail_message.message().as_string()) File "/usr/lib/python2.6/smtplib.py" in ehlo_or_helo_if_neededself.ehlo_or_helo_if_needed() File "/usr/lib/python2.6/smtplib.py" in ehloif not (200 <= self.ehlo()[0] <= 299): File "/usr/lib/python2.6/smtplib.py" in putcmdself.putcmd(self.ehlo_msg, name or self.local_hostname) File "/usr/lib/python2.6/smtplib.py" in sendself.send(str)raise SMTPServerDisconnected('please run connect() first')
Exception Type: SMTPServerDisconnected at /accounts/register/ Exception Value: please run connect() first
<<<<<<
I don't have an SMTP server configured in Django, not sure how to set one up either...
This:
http://code.google.com/p/app-engine-patch/issues/detail?id=211
suggests the problem can be fixed with an option to runserver, but the runserver chishop builds does not have that option (as far as I can see).
Maybe other authentication systems would be better anyway since this will mostly be used for team and personal servers?
https://github.com/isotoma/FakeEmail provides a fake email server and gives you access to the emails that would have been sent using a web interface. Worth checking out as a temporary solution.